]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: sysfs: fix unused-but-set-variable warnings
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 19 Aug 2020 14:16:28 +0000 (17:16 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:06:56 +0000 (12:06 +0200)
commit4bfcdc7365ef9cc531e3881e2327f4c0f2a62024
treee44438a4c8d880839600d13688d91246d9604f49
parent6b97d2c8348d5b31628a2af9dc9bd4e98137423a
btrfs: sysfs: fix unused-but-set-variable warnings

The compilation with W=1 generates the following warnings:
 fs/btrfs/sysfs.c:1630:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
  1630 |  int ret;
       |      ^~~
 fs/btrfs/sysfs.c:1629:6: warning: variable 'features' set but not used [-Wunused-but-set-variable]
  1629 |  u64 features;
       |      ^~~~~~~~

[ The unused variables are leftover from fce427838152 ("Revert "btrfs:
  synchronize incompat feature bits with sysfs files""), which needs
  to be properly fixed by moving feature bit manipulation from the sysfs
  context.  Silence the warning to save pepople time, we got several
  reports. ]

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c