]> git.hungrycats.org Git - linux/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)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Fri, 27 Mar 2015 03:33:30 +0000 (23:33 -0400)
commit371eb69e9c9a97a437fff9fd8e5a6825bead2283
tree4b0255c20e0320e94cbe4d2cb9281f6572f21ad7
parent57f8d66add973141a70a44ac45cf58df72b80735
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>
(cherry picked from commit 258ece02126a67af263746e1ae5f8ddf0d492e14)
fs/btrfs/volumes.c