From 88400b599efa2a06fcc29c1c69ef450aa0c98524 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 14 Jan 2016 11:54:37 +0100 Subject: [PATCH] lvmanip: fix last commit and drop else In last commit when removing if() branch this 'else' now has to be dropped. --- lib/metadata/lv_manip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index ca9e0a13c..7ba52f9f4 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -3136,7 +3136,8 @@ static struct alloc_handle *_alloc_init(struct cmd_context *cmd, /* FIXME Caller should ensure this */ if (mirrors && !stripes) stripes = 1; - else if (mirrors > 1) + + if (mirrors > 1) area_count = mirrors * stripes; else area_count = stripes;