From ece2e8976b4b7f37356334c924fdd42a0de8f8db Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 13 Aug 2006 15:45:26 +0200 Subject: [GCC4] fix warning in drivers/char/ip2/i2lib.c This patch fixes this warning with gcc 4 : In file included from ip2main.c:409: ./ip2/i2lib.c: In function 'i2RetryFlushOutput': ./ip2/i2lib.c:1265: warning: comparisons like X<=Y<=Z do not have their mathematical meaning --- drivers/char/ip2/i2lib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/char/ip2/i2lib.c b/drivers/char/ip2/i2lib.c index 972822b..c1ec184 100644 --- a/drivers/char/ip2/i2lib.c +++ b/drivers/char/ip2/i2lib.c @@ -1262,7 +1262,7 @@ i2RetryFlushOutput(i2ChanStrPtr pCh) } if ( old_flags & STOPFL_FLAG ) { - if ( 1 == i2QueueCommands(PTYPE_INLINE, pCh, 0, 1, CMD_STOPFL) > 0 ) { + if ( 1 == i2QueueCommands(PTYPE_INLINE, pCh, 0, 1, CMD_STOPFL)) { old_flags = 0; // Success - clear flags } -- 1.4.2