From ee878bc52c18dca928682d5f282e8e4ed54bcc2e Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 16 Oct 2013 15:06:43 +0200 Subject: [PATCH] coverity: assigned variable not used and reassigned later --- lib/metadata/lv_manip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 8f09af78e..383bab1a9 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -89,7 +89,7 @@ static int _lv_is_on_pv(struct cmd_context *cmd, struct physical_volume *pv2; struct lv_segment *seg; - if (!lv || !(seg = first_seg(lv))) + if (!lv || !(first_seg(lv))) return_0; /* -- 2.43.5