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>
This commit is contained in:
David Sterba 2016-11-03 16:27:04 +01:00
parent 1b1a49b1e6
commit c6a0cb7d6d

View File

@ -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);