patch-2.4.19 linux-2.4.19/drivers/atm/fore200e.c
Next file: linux-2.4.19/drivers/atm/horizon.c
Previous file: linux-2.4.19/drivers/acpi/executer/exresnte.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/drivers/atm/fore200e.c
- Orig date:
Thu Sep 13 15:21:32 2001
diff -urN linux-2.4.18/drivers/atm/fore200e.c linux-2.4.19/drivers/atm/fore200e.c
@@ -252,7 +252,7 @@
fore200e_spin(int msecs)
{
unsigned long timeout = jiffies + MSECS(msecs);
- while (jiffies < timeout);
+ while (time_before(jiffies, timeout));
}
@@ -267,7 +267,7 @@
if ((ok = (*addr == val)) || (*addr & STATUS_ERROR))
break;
- } while (jiffies < timeout);
+ } while (time_before(jiffies, timeout));
#if 1
if (!ok) {
@@ -290,7 +290,7 @@
if ((ok = (fore200e->bus->read(addr) == val)))
break;
- } while (jiffies < timeout);
+ } while (time_before(jiffies, timeout));
#if 1
if (!ok) {
@@ -2417,7 +2417,7 @@
unsigned long timeout = jiffies + MSECS(50);
int c;
- while (jiffies < timeout) {
+ while (time_before(jiffies, timeout)) {
c = (int) fore200e->bus->read(&monitor->soft_uart.recv);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)