]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: remove shadow variable in xfs_btree_lshift
authorEric Sandeen <sandeen@redhat.com>
Sat, 14 Mar 2020 02:59:15 +0000 (22:59 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Sat, 14 Mar 2020 02:59:15 +0000 (22:59 -0400)
commit3b33e29f98ac1d19847fab4d05278150c81fac7d
tree8702fd53ef099cbd303238f99d9b34852f76a48f
parentc5f89a875886e90464baee6ed470597e5339b920
xfs: remove shadow variable in xfs_btree_lshift

Source kernel commit: 5a57c05b56b6eb2b4e3eb2a9f205e39e849325a1

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_btree.c