projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b1a49b
)
btrfs-progs: utils: remove useless check in make_btrfs
author
David Sterba
<dsterba@suse.com>
Thu, 3 Nov 2016 15:27:04 +0000
(16:27 +0100)
committer
David Sterba
<dsterba@suse.com>
Wed, 9 Nov 2016 12:47:32 +0000
(13:47 +0100)
A leftover when fs_uuid was dynamically allocated, the condition was
always true, no functional change.
Signed-off-by: David Sterba <dsterba@suse.com>
utils.c
patch
|
blob
|
history
diff --git
a/utils.c
b/utils.c
index
4ab6a35
..
01d9586
100644
(file)
--- 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);