Просмотр исходного кода

quorumtool: fix return code

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto 14 лет назад
Родитель
Сommit
083aa9d713
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      tools/corosync-quorumtool.c

+ 1 - 4
tools/corosync-quorumtool.c

@@ -434,10 +434,7 @@ static int monitor_status(nodeid_format_t nodeid_format, name_format_t name_form
 	}
 	}
 
 
 quorum_err:
 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)
 static int show_nodes(nodeid_format_t nodeid_format, name_format_t name_format)