From 279609aedf1433f9b0138c842db242e8e31ddc1e Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 10 Nov 2016 17:11:09 +0100 Subject: btrfs-progs: mkfs: add temporary variable for fs features A minor cleanup before other changes. Signed-off-by: David Sterba --- utils.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/utils.c b/utils.c index 89fb215a..fb1d70c2 100644 --- a/utils.c +++ b/utils.c @@ -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); } } -- cgit v1.2.3