xfs: remove shadow variable in xfs_btree_lshift
authorEric Sandeen <sandeen@redhat.com>
Thu, 2 Jan 2020 21:31:54 +0000 (13:31 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 7 Jan 2020 18:21:08 +0000 (10:21 -0800)
commit5a57c05b56b6eb2b4e3eb2a9f205e39e849325a1
tree91341958acc41fc4995f986148984f9125841de3
parentb8a0880a37e2f43aa3bcd147182e95a4ebd82279
xfs: remove shadow variable in xfs_btree_lshift

Sparse warns about a shadow variable in this function after the
Fixed: commit added another int i; with larger scope.  It's safe
to remove the one with the smaller scope to fix this shadow,
although the shadow itself is harmless.

Fixes: 2c813ad66a72 ("xfs: support btrees with overlapping intervals for keys")
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_btree.c