]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove shadowing variables in __btrfs_map_block
authorDavid Sterba <dsterba@suse.cz>
Tue, 24 Feb 2015 18:45:15 +0000 (19:45 +0100)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Mar 2015 16:24:35 +0000 (17:24 +0100)
commit6d898071bd3645ae4723f53aeecc59d0a8bdf478
tree925c2ccfbad05c1e27f7bc9ad5495165aa35c2b3
parent4b231b0f740880bfaf94aff471883e5deb87ec20
btrfs: remove shadowing variables in __btrfs_map_block

1) We can safely use the function's 'i'. Fixes warning

fs/btrfs/volumes.c:5257:7: warning: declaration of 'i' shadows a previous local
fs/btrfs/volumes.c:4951:6: warning: shadowed declaration is here

2) A local variable duplicates name of an argument, we can use the value
directly. Fixes warning

fs/btrfs/volumes.c:5433:8: warning: declaration of 'length' shadows a parameter
fs/btrfs/volumes.c:4935:27: warning: shadowed declaration is here

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/volumes.c