All of lore.kernel.org
 help / color / mirror / Atom feed
* master - coverity: remove dead code in lv_info_with_seg_status (continued)
@ 2014-11-26 10:58 Peter Rajnoha
  0 siblings, 0 replies; only message in thread
From: Peter Rajnoha @ 2014-11-26 10:58 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c8890e3ac1adcb9129c30d3fe9a1a11ceedebce4
Commit:        c8890e3ac1adcb9129c30d3fe9a1a11ceedebce4
Parent:        193f9b26a0a87b2f5ce9a308ea0d957fadfe4aeb
Author:        Peter Rajnoha <prajnoha@redhat.com>
AuthorDate:    Wed Nov 26 11:58:25 2014 +0100
Committer:     Peter Rajnoha <prajnoha@redhat.com>
CommitterDate: Wed Nov 26 11:58:25 2014 +0100

coverity: remove dead code in lv_info_with_seg_status (continued)

---
 lib/activate/activate.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/lib/activate/activate.c b/lib/activate/activate.c
index 258873b..dd0a4f9 100644
--- a/lib/activate/activate.c
+++ b/lib/activate/activate.c
@@ -722,11 +722,9 @@ int lv_info_with_seg_status(struct cmd_context *cmd, const struct logical_volume
 	if (!activation())
 		return 0;
 
-	if (lv == lv_seg->lv) {
-		r = _lv_info(cmd, lv, use_layer, lvinfo, lv_seg, lv_seg_status,
-			     with_open_count, with_read_ahead);
-		return 0;
-	}
+	if (lv == lv_seg->lv)
+		return _lv_info(cmd, lv, use_layer, lvinfo, lv_seg, lv_seg_status,
+				with_open_count, with_read_ahead);
 
 	/*
 	 * If the info is requested for an LV and segment



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-26 10:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-26 10:58 master - coverity: remove dead code in lv_info_with_seg_status (continued) Peter Rajnoha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.