]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: remove unused variable in btrfs_sb_log_location_bdev
authorNikolay Borisov <nborisov@suse.com>
Sun, 24 Jan 2021 16:03:21 +0000 (18:03 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:58:54 +0000 (22:58 +0100)
commit87d66dc6fe27e3f53688f5393a416fbcfe75f128
tree6e8b2b054a34b62033f794e36f3bca93b4ac98ea
parent461ab990105636b849ddc93cca37d63540d9e84a
btrfs: zoned: remove unused variable in btrfs_sb_log_location_bdev

This fixes warning:

fs/btrfs/zoned.c:491:6: warning: variable ‘zone_size’ set but not used [-Wunused-but-set-variable]
  491 |  u64 zone_size;

which got introduced in 0942f67d4364 ("btrfs: implement log-structured
superblock for ZONED mode"). We'll enable the warning by default and
want clean build until the relevant zoned patches land.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zoned.c