Commit 8976f5f6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix double logical operator drivers/char/sx.c

From: "Josef 'Jeff' Sipek" <jeffpc@optonline.net>

Simple clean up patch to remove double logical operators.
parent 41792375
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment