xfs: remove impossible condition
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Tue, 8 Mar 2016 21:17:56 +0000 (08:17 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 8 Mar 2016 21:17:56 +0000 (08:17 +1100)
bp_release is set to 0 just before the breakpoint of the for loop before
the conditional check (in line 458). The other breakpoint is a goto that
skips the dead code.

Addresses-Coverity-Id: 102338

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_bmap.c

index ef00156..9054c50 100644 (file)
@@ -477,10 +477,7 @@ xfs_bmap_check_leaf_extents(
                }
                block = XFS_BUF_TO_BLOCK(bp);
        }
-       if (bp_release) {
-               bp_release = 0;
-               xfs_trans_brelse(NULL, bp);
-       }
+
        return;
 
 error0: