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

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

diff -u --recursive --new-file v2.1.131/linux/drivers/scsi/ppa.c linux/drivers/scsi/ppa.c
@@ -147,7 +147,7 @@
 	    while (ppa_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 "ppa%d: failed to claim parport because a "
 			   "pardevice is owning the port for too longtime!\n",
@@ -867,7 +867,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;
 
 	if (((r & 0xc0) != 0xc0) || (cmd->SCp.this_residual <= 0)) {

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