• Leon Romanovsky's avatar
    btrfs: sysfs: fix unused-but-set-variable warnings · 24646481
    Leon Romanovsky authored
    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 e410e34f ("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: default avatarLeon Romanovsky <leonro@nvidia.com>
    Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    24646481
sysfs.c 45.2 KB