From cc6d64c10ac77d6fbedf93d93c6ce92321a08541 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 13 Aug 2006 10:53:13 +0200 Subject: [GCC4] fix warnings in drivers/char/sx.c This patch fixes this warning with gcc 4 : sx.c: In function 'sx_busy_wait_eq': sx.c:525: warning: comparisons like X<=Y<=Z do not have their mathematical meaning sx.c:531: warning: comparisons like X<=Y<=Z do not have their mathematical meaning sx.c: In function 'sx_busy_wait_neq': sx.c:551: warning: comparisons like X<=Y<=Z do not have their mathematical meaning sx.c:557: warning: comparisons like X<=Y<=Z do not have their mathematical meaning --- drivers/char/sx.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/char/sx.c b/drivers/char/sx.c index 5e62045..8cc448c 100644 --- a/drivers/char/sx.c +++ b/drivers/char/sx.c @@ -522,13 +522,13 @@ static int sx_busy_wait_eq (struct sx_bo func_enter (); - for (i=0; i < TIMEOUT_1 > 0;i++) + for (i=0; i < TIMEOUT_1 ;i++) if ((read_sx_byte (board, offset) & mask) == correctval) { func_exit (); return 1; } - for (i=0; i < TIMEOUT_2 > 0;i++) { + for (i=0; i < TIMEOUT_2 ;i++) { if ((read_sx_byte (board, offset) & mask) == correctval) { func_exit (); return 1; @@ -548,13 +548,13 @@ static int sx_busy_wait_neq (struct sx_b func_enter (); - for (i=0; i < TIMEOUT_1 > 0;i++) + for (i=0; i < TIMEOUT_1 ;i++) if ((read_sx_byte (board, offset) & mask) != badval) { func_exit (); return 1; } - for (i=0; i < TIMEOUT_2 > 0;i++) { + for (i=0; i < TIMEOUT_2 ;i++) { if ((read_sx_byte (board, offset) & mask) != badval) { func_exit (); return 1; -- 1.4.2