From cbecd3cd116ed83c5e91cd6a26bf7bb0bb071be1 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 29 Nov 2010 11:26:00 +0000 Subject: [PATCH] Remove dead assignment in dm_tree_node_add_mirror_target_log 'seg' is never used - remove it. --- libdm/libdm-deptree.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index c1b5bdcc3..50c79e802 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -2199,9 +2199,7 @@ int dm_tree_node_add_mirror_target_log(struct dm_tree_node *node, int dm_tree_node_add_mirror_target(struct dm_tree_node *node, uint64_t size) { - struct load_segment *seg; - - if (!(seg = _add_segment(node, SEG_MIRRORED, size))) + if (!_add_segment(node, SEG_MIRRORED, size)) return_0; return 1;