mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 23:52:17 +00:00
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:
parent
1b1a49b1e6
commit
c6a0cb7d6d
3
utils.c
3
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);
|
||||
|
Loading…
Reference in New Issue
Block a user