patch-2.1.132 linux/drivers/scsi/imm.c

Next file: linux/drivers/scsi/ini9100u.c
Previous file: linux/drivers/scsi/i91uscsi.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.131/linux/drivers/scsi/imm.c linux/drivers/scsi/imm.c
@@ -186,7 +186,7 @@
 	    while (imm_hosts[i].p_busy)
 	    {
 		schedule();	/* We are safe to schedule here */
-		if (jiffies > now + 3*HZ)
+		if (time_after(jiffies,now + 3*HZ))
 		{
 		    printk(KERN_ERR "imm%d: failed to claim parport because a "
 			   "pardevice is owning the port for too longtime!\n",
@@ -831,7 +831,7 @@
 	 * If we have been running for more than a full timer tick
 	 * then take a rest.
 	 */
-	if (jiffies > start_jiffies + 1)
+	if (time_after(jiffies,start_jiffies + 1))
 	    return 0;
 
 	/*

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