summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/sysfs.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-11-27 15:25:13 +0100
committerDavid Sterba <dsterba@suse.com>2018-12-17 14:51:43 +0100
commitbbe339cc323ca9d2a57ac203d2d9d11a09655dcc (patch)
tree2b779c4fc5d3d90ead96462a006cf7ab94aa9974 /fs/btrfs/sysfs.h
parent5b840301ac4b8a8e8d42d0c7edc31dc3e257145d (diff)
downloadlinux-bbe339cc323ca9d2a57ac203d2d9d11a09655dcc.tar.bz2
btrfs: drop extra enum initialization where using defaults
The first auto-assigned value to enum is 0, we can use that and not initialize all members where the auto-increment does the same. This is used for values that are not part of on-disk format. Reviewed-by: Omar Sandoval <osandov@fb.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/sysfs.h')
-rw-r--r--fs/btrfs/sysfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/sysfs.h b/fs/btrfs/sysfs.h
index c6ee600aff89..40716b357c1d 100644
--- a/fs/btrfs/sysfs.h
+++ b/fs/btrfs/sysfs.h
@@ -9,7 +9,7 @@
extern u64 btrfs_debugfs_test;
enum btrfs_feature_set {
- FEAT_COMPAT = 0,
+ FEAT_COMPAT,
FEAT_COMPAT_RO,
FEAT_INCOMPAT,
FEAT_MAX