From 3d6782b3ff2531f957841eb7c235f31fd19a22db Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 20 Oct 2011 10:39:07 +0000 Subject: [PATCH] Just replace stack, return 0 with return_0 --- libdm/libdm-deptree.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index 24dbd39e7..a5ba7de28 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -2266,19 +2266,13 @@ int dm_tree_preload_children(struct dm_tree_node *dnode, return_0; /* FIXME Cope if name exists with no uuid? */ - if (!child->info.exists) { - if (!_create_node(child)) { - stack; - return 0; - } - } + if (!child->info.exists && !_create_node(child)) + return_0; - if (!child->info.inactive_table && child->props.segment_count) { - if (!_load_node(child)) { - stack; - return 0; - } - } + if (!child->info.inactive_table && + child->props.segment_count && + !_load_node(child)) + return_0; /* Propagate device size change change */ if (child->props.size_changed)