From dc225f58a9b802336cbc1f8cda5d267a83041e72 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 22 Oct 2011 16:46:34 +0000 Subject: [PATCH] Remove extra empty check dm_list_splice handles empty list itself, no need to duplicate code. --- lib/metadata/lv_manip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 3ab8a8f88..71f492feb 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -4139,8 +4139,7 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, struct l lv->minor); } - if (!dm_list_empty(&lp->tags)) - dm_list_splice(&lv->tags, &lp->tags); + dm_list_splice(&lv->tags, &lp->tags); lp->region_size = adjusted_mirror_region_size(vg->extent_size, lp->extents,