diff options
author | David Sterba <dsterba@suse.com> | 2016-11-03 16:27:04 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-09 13:47:32 +0100 |
commit | c6a0cb7d6d613795fe1ea4f8d01c27f2972f60d5 (patch) | |
tree | 297eb9e64ac8104852f0b505ec06831be72b9891 /utils.c | |
parent | 1b1a49b1e6b146648aead0896b356707f018951c (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>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |