From f3f6c172505661d04d753c75499663834ba3e16c Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Sun, 12 Feb 2012 21:42:43 +0000 Subject: [PATCH] use stack consistently if 0 is considered an error --- lib/metadata/thin_manip.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/lib/metadata/thin_manip.c b/lib/metadata/thin_manip.c index 9644ba0a1..f66917c70 100644 --- a/lib/metadata/thin_manip.c +++ b/lib/metadata/thin_manip.c @@ -225,22 +225,18 @@ int pool_below_threshold(const struct lv_segment *pool_seg) DEFAULT_THIN_POOL_AUTOEXTEND_THRESHOLD); /* Data */ - if (!lv_thin_pool_percent(pool_seg->lv, 0, &percent)) { - stack; - return 0; - } + if (!lv_thin_pool_percent(pool_seg->lv, 0, &percent)) + return_0; if (percent >= threshold) - return 0; + return_0; /* Metadata */ - if (!lv_thin_pool_percent(pool_seg->lv, 1, &percent)) { - stack; - return 0; - } + if (!lv_thin_pool_percent(pool_seg->lv, 1, &percent)) + return_0; if (percent >= threshold) - return 0; + return_0; return 1; } -- 2.43.5