patch-2.2.0-pre2 linux/drivers/net/dgrs.c

Next file: linux/drivers/net/eepro.c
Previous file: linux/drivers/net/de4x5.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre1/linux/drivers/net/dgrs.c linux/drivers/net/dgrs.c
@@ -1098,7 +1098,7 @@
 	 */
 	proc_reset(dev0, 0);
 
-	for (i = jiffies + 8 * HZ; i > jiffies; )
+	for (i = jiffies + 8 * HZ; time_after(i, jiffies); )
 	{
 		if (priv0->bcomm->bc_status >= BC_RUN)
 			break;
@@ -1196,7 +1196,7 @@
 		return (rc);
 
 	priv->intrcnt = 0;
-	for (i = jiffies + 2*HZ + HZ/2; i > jiffies; )
+	for (i = jiffies + 2*HZ + HZ/2; time_after(i, jiffies); )
 		if (priv->intrcnt >= 2)
 			break;
 	if (priv->intrcnt < 2)

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