Commit 184d7d20d352c7374f70ebca7468dc8cd5cc618a

Authored by Florin Malita
Committed by Mark Fasheh
1 parent 784270435b

ocfs2: remove redundant NULL checks in ocfs2_direct_IO_get_blocks()

Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>

Showing 1 changed file with 1 additions and 8 deletions Side-by-side Diff

... ... @@ -558,15 +558,8 @@
558 558 u64 vbo_max; /* file offset, max_blocks from iblock */
559 559 u64 p_blkno;
560 560 int contig_blocks;
561   - unsigned char blocksize_bits;
  561 + unsigned char blocksize_bits = inode->i_sb->s_blocksize_bits;
562 562 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits;
563   -
564   - if (!inode || !bh_result) {
565   - mlog(ML_ERROR, "inode or bh_result is null\n");
566   - return -EIO;
567   - }
568   -
569   - blocksize_bits = inode->i_sb->s_blocksize_bits;
570 563  
571 564 /* This function won't even be called if the request isn't all
572 565 * nicely aligned and of the right size, so there's no need