patch-2.2.0-pre2 linux/drivers/scsi/eata_pio.c

Next file: linux/drivers/scsi/eata_pio_proc.c
Previous file: linux/drivers/scsi/eata_dma_proc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre1/linux/drivers/scsi/eata_pio.c linux/drivers/scsi/eata_pio.c
@@ -500,7 +500,7 @@
     HD(cmd)->state = RESET;
     
     time = jiffies;
-    while (jiffies < (time + (3 * HZ)) && limit++ < 10000000);
+    while (time_before(jiffies, time + 3 * HZ) && limit++ < 10000000);
     
     DBG(DBG_ABNORM, printk(KERN_WARNING "eata_pio_reset: interrupts disabled, "
                            "loops %d.\n", limit));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov