]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: ref-verify: Remove unused parameter from walk_up_tree() to kill warning
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 15 Nov 2017 15:04:40 +0000 (16:04 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:13 +0000 (16:08 +0100)
commit47751e62514751c343203981872ee161720e8efd
tree264eb12934ac3774ce6e5092c390766e2426ecbb
parent9cffafa735ef4da88304c63acc3e62872d987fec
btrfs: ref-verify: Remove unused parameter from walk_up_tree() to kill warning

With gcc-4.1.2:

    fs/btrfs/ref-verify.c: In function ‘btrfs_build_ref_tree’:
    fs/btrfs/ref-verify.c:1017: warning: ‘root’ is used uninitialized in this function

The variable is indeed passed uninitialized, but it is never used by the
callee.  However, not all versions of gcc are smart enough to notice.

Hence remove the unused parameter from walk_up_tree() to silence the
compiler warning.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ref-verify.c