gfs2-utils: master - gfs_controld: Remove dead code from loop()

Andrew Price andyp at fedoraproject.org
Tue Sep 6 12:53:15 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=8d9c74306165491098c07dc19b79b6f2f9b9cc62
Commit:        8d9c74306165491098c07dc19b79b6f2f9b9cc62
Parent:        cd62d322ba6bbaf07c657d00712f3405c8e74099
Author:        Andrew Price <anprice at redhat.com>
AuthorDate:    Mon Sep 5 14:41:05 2011 +0100
Committer:     Andrew Price <anprice at redhat.com>
CommitterDate: Tue Sep 6 13:51:51 2011 +0100

gfs_controld: Remove dead code from loop()

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 <anprice at redhat.com>
---
 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;
 			}
 		}
 		query_unlock();


More information about the cluster-commits mailing list