From ec7609ab85f2d2d5e6eeb4d4cb694472241e17e4 Mon Sep 17 00:00:00 2001 From: "Fabio M. Di Nitto" Date: Thu, 12 Jan 2012 09:55:46 +0100 Subject: [PATCH] quorumtool: drop redundant init calls to votequorum this is taken care of in initall Signed-off-by: Fabio M. Di Nitto Reviewed-by: Steven Dake --- tools/corosync-quorumtool.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/corosync-quorumtool.c b/tools/corosync-quorumtool.c index c290815d..785ee7ae 100644 --- a/tools/corosync-quorumtool.c +++ b/tools/corosync-quorumtool.c @@ -201,11 +201,6 @@ static int set_votes(uint32_t nodeid, int votes) { int err; - if ((err=votequorum_initialize(&v_handle, &v_callbacks)) != CS_OK) { - fprintf(stderr, "votequorum_initialize FAILED: %d, this is probably a configuration error\n", err); - return err; - } - if ((err=votequorum_setvotes(v_handle, nodeid, votes)) != CS_OK) { fprintf(stderr, "set votes FAILED: %d\n", err); } @@ -217,11 +212,6 @@ static int set_expected(int expected_votes) { int err; - if ((err=votequorum_initialize(&v_handle, &v_callbacks)) != CS_OK) { - fprintf(stderr, "votequorum_initialize FAILED: %d, this is probably a configuration error\n", err); - return err; - } - if ((err=votequorum_setexpected(v_handle, expected_votes)) != CS_OK) { fprintf(stderr, "set expected votes FAILED: %d\n", err); }