summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-03 16:27:04 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-09 13:47:32 +0100
commitc6a0cb7d6d613795fe1ea4f8d01c27f2972f60d5 (patch)
tree297eb9e64ac8104852f0b505ec06831be72b9891
parent1b1a49b1e6b146648aead0896b356707f018951c (diff)
btrfs-progs: utils: remove useless check in make_btrfs
A leftover when fs_uuid was dynamically allocated, the condition was always true, no functional change. Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index 4ab6a357..01d95868 100644
--- a/utils.c
+++ b/utils.c
@@ -1098,8 +1098,7 @@ int make_btrfs(int fd, struct btrfs_mkfs_config *cfg,
}
} else {
uuid_generate(super.fsid);
- if (cfg->fs_uuid)
- uuid_unparse(super.fsid, cfg->fs_uuid);
+ uuid_unparse(super.fsid, cfg->fs_uuid);
}
uuid_generate(super.dev_item.uuid);
uuid_generate(chunk_tree_uuid);