1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: drop impossible test case

This test can never be true since info is embeded struct.
This commit is contained in:
Zdenek Kabelac 2017-12-04 11:28:31 +01:00
parent 1f6d79ab48
commit 10f37345eb

View File

@ -1025,7 +1025,7 @@ out:
static int _node_clear_table(struct dm_tree_node *dnode, uint16_t udev_flags) static int _node_clear_table(struct dm_tree_node *dnode, uint16_t udev_flags)
{ {
struct dm_task *dmt = NULL, *deps_dmt = NULL; struct dm_task *dmt = NULL, *deps_dmt = NULL;
struct dm_info *info, deps_info; struct dm_info *info = &dnode->info, deps_info;
struct dm_deps *deps = NULL; struct dm_deps *deps = NULL;
const char *name, *uuid, *depname, *depuuid; const char *name, *uuid, *depname, *depuuid;
const char *default_uuid_prefix; const char *default_uuid_prefix;
@ -1033,11 +1033,6 @@ static int _node_clear_table(struct dm_tree_node *dnode, uint16_t udev_flags)
uint32_t i; uint32_t i;
int r = 0; int r = 0;
if (!(info = &dnode->info)) {
log_error("_node_clear_table failed: missing info");
return 0;
}
if (!(name = dm_tree_node_get_name(dnode))) { if (!(name = dm_tree_node_get_name(dnode))) {
log_error("_node_clear_table failed: missing name"); log_error("_node_clear_table failed: missing name");
return 0; return 0;