[PATCH 3/9] quorumtool: fix return code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>

Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx>
---
:100644 100644 f81fff7... 2b8c136... M	tools/corosync-quorumtool.c
 tools/corosync-quorumtool.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/tools/corosync-quorumtool.c b/tools/corosync-quorumtool.c
index f81fff7..2b8c136 100644
--- a/tools/corosync-quorumtool.c
+++ b/tools/corosync-quorumtool.c
@@ -434,10 +434,7 @@ static int monitor_status(nodeid_format_t nodeid_format, name_format_t name_form
 	}
 
 quorum_err:
-	if (err != CS_OK) {
-		return -1;
-	}
-	return g_quorate;
+	return -1;
 }
 
 static int show_nodes(nodeid_format_t nodeid_format, name_format_t name_format)
-- 
1.7.7.6

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Corosync Project]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux