From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Teigland Date: Tue, 6 Sep 2011 10:36:18 -0400 Subject: [Cluster-devel] [PATCH 4/5] gfs_controld: Remove dead code from loop() In-Reply-To: <1315310417-4833-4-git-send-email-anprice@redhat.com> References: <1315310417-4833-1-git-send-email-anprice@redhat.com> <1315310417-4833-4-git-send-email-anprice@redhat.com> Message-ID: <20110906143618.GA7303@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Tue, Sep 06, 2011 at 01:00:16PM +0100, Andrew Price wrote: > This patch removes an if statement where the true branch is never taken. > At this point in the code, poll_timeout could only be 500 or -1. > > Signed-off-by: Andrew Price > --- > group/gfs_controld/main.c | 3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) > > diff --git a/group/gfs_controld/main.c b/group/gfs_controld/main.c > index 252965a..aa38839 100644 > --- a/group/gfs_controld/main.c > +++ b/group/gfs_controld/main.c > @@ -1286,9 +1286,6 @@ static void loop(void) > if (dmsetup_wait) { > if (poll_timeout == -1) > poll_timeout = 1000; > - } else { > - if (poll_timeout == 1000) > - poll_timeout = -1; ok > } > } > query_unlock(); > -- > 1.7.6