[PATCH 5/5] Xext: IdleTimeBlockHandler: unsigned_compare: Comparing unsigned less than zero is never true. "timeout < 0UL"

Oliver McFadden oliver.mcfadden at nokia.com
Mon Mar 15 14:46:37 PDT 2010


Signed-off-by: Oliver McFadden <oliver.mcfadden at nokia.com>
---
 Xext/sync.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/Xext/sync.c b/Xext/sync.c
index ce65314..cf78cdc 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -2329,10 +2329,8 @@ IdleTimeBlockHandler(pointer env, struct timeval **wt, pointer LastSelectMask)
 	} else {
 	    for (list = IdleTimeCounter->pTriglist; list; list = list->next) {
 		trig = list->pTrigger;
-		if (trig->CheckTrigger(trig, old_idle)) {
-		    timeout = min(timeout, 0);
+		if (trig->CheckTrigger(trig, old_idle))
 		    break;
-		}
 	    }
 	}
 
-- 
1.6.1



More information about the xorg-devel mailing list