mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: drop unneeded check
Code already has dereferenced UUID before this point, and its already given we require name & uuid when ading new node (although uuid could be empty string).
This commit is contained in:
parent
5abf6b7c21
commit
406b566cfc
@ -519,8 +519,7 @@ static struct dm_tree_node *_create_dm_tree_node(struct dm_tree *dtree,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (uuid && *uuid &&
|
||||
!dm_hash_insert(dtree->uuids, uuid, node)) {
|
||||
if (*uuid && !dm_hash_insert(dtree->uuids, uuid, node)) {
|
||||
log_error("dtree uuid hash insertion failed");
|
||||
dm_hash_remove_binary(dtree->devs, (const char *) &dev,
|
||||
sizeof(dev));
|
||||
|
Loading…
Reference in New Issue
Block a user