mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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 <luisbg@osg.samsung.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
30cbc591c3
commit
a5fd276bdc
1 changed files with 1 additions and 4 deletions
|
@ -477,10 +477,7 @@ xfs_bmap_check_leaf_extents(
|
||||||
}
|
}
|
||||||
block = XFS_BUF_TO_BLOCK(bp);
|
block = XFS_BUF_TO_BLOCK(bp);
|
||||||
}
|
}
|
||||||
if (bp_release) {
|
|
||||||
bp_release = 0;
|
|
||||||
xfs_trans_brelse(NULL, bp);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
error0:
|
error0:
|
||||||
|
|
Loading…
Add table
Reference in a new issue