Skip to content
  • David Sterba's avatar
    btrfs: remove shadowing variables in __btrfs_map_block · 258ece02
    David Sterba authored
    
    
    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: default avatarDavid Sterba <dsterba@suse.cz>
    258ece02