]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix double logical operator drivers/char/sx.c
authorAndrew Morton <akpm@osdl.org>
Tue, 30 Dec 2003 07:44:25 +0000 (23:44 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 30 Dec 2003 07:44:25 +0000 (23:44 -0800)
From: "Josef 'Jeff' Sipek" <jeffpc@optonline.net>

Simple clean up patch to remove double logical operators.

drivers/char/sx.c

index 7ae703380821dd4dc8abc133f99dd3d06ec27a81..f414def6b93eada8864e4045b3502c3270580314 100644 (file)
@@ -509,13 +509,13 @@ static int sx_busy_wait_eq (struct sx_board *board,
 
        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;
@@ -535,13 +535,13 @@ static int sx_busy_wait_neq (struct sx_board *board,
 
        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;