Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 184d7d20 authored by Florin Malita's avatar Florin Malita Committed by Mark Fasheh
Browse files

ocfs2: remove redundant NULL checks in ocfs2_direct_IO_get_blocks()

parent 78427043
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -558,16 +558,9 @@ static int ocfs2_direct_IO_get_blocks(struct inode *inode, sector_t iblock,
	u64 vbo_max; /* file offset, max_blocks from iblock */
	u64 p_blkno;
	int contig_blocks;
	unsigned char blocksize_bits;
	unsigned char blocksize_bits = inode->i_sb->s_blocksize_bits;
	unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits;

	if (!inode || !bh_result) {
		mlog(ML_ERROR, "inode or bh_result is null\n");
		return -EIO;
	}

	blocksize_bits = inode->i_sb->s_blocksize_bits;

	/* This function won't even be called if the request isn't all
	 * nicely aligned and of the right size, so there's no need
	 * for us to check any of that. */