From: Luis de Bethencourt Date: Tue, 8 Mar 2016 21:17:56 +0000 (+1100) Subject: xfs: remove impossible condition X-Git-Tag: v4.14-rc1~3583^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5fd276bdc4fb71b06d100a6abc77ad682f77de4;p=platform%2Fkernel%2Flinux-rpi.git xfs: remove impossible condition 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 Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index ef00156..9054c50 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -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: