diff options
author | David Sterba <dsterba@suse.com> | 2016-11-10 17:11:09 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-11 16:25:17 +0100 |
commit | 279609aedf1433f9b0138c842db242e8e31ddc1e (patch) | |
tree | 5607d1468efdbda43819f8cf2585372739525ad4 | |
parent | 388cdce5092333efc569344908df9839a1c0cbba (diff) |
btrfs-progs: mkfs: add temporary variable for fs features
A minor cleanup before other changes.
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | utils.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -1522,17 +1522,15 @@ void btrfs_list_all_fs_features(u64 mask_disallowed) fprintf(stderr, "Filesystem features available:\n"); for (i = 0; i < ARRAY_SIZE(mkfs_features) - 1; i++) { + const struct btrfs_fs_feature *feat = &mkfs_features[i]; char *is_default = ""; - if (mkfs_features[i].flag & mask_disallowed) + if (feat->flag & mask_disallowed) continue; - if (mkfs_features[i].flag & BTRFS_MKFS_DEFAULT_FEATURES) + if (feat->flag & BTRFS_MKFS_DEFAULT_FEATURES) is_default = ", default"; - fprintf(stderr, "%-20s- %s (0x%llx%s)\n", - mkfs_features[i].name, - mkfs_features[i].desc, - mkfs_features[i].flag, - is_default); + fprintf(stderr, "%-20s- %s (0x%llx%s)\n", feat->name, + feat->desc, feat->flag, is_default); } } |