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

Next file: linux/drivers/net/seeq8005.c
Previous file: linux/drivers/net/plip.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre1/linux/drivers/net/sdla.c linux/drivers/net/sdla.c
@@ -248,7 +248,7 @@
 	temp += z80_addr & SDLA_ADDR_MASK;
 	
 	resp = ~resp1;
-	while ((jiffies < done) && (resp != resp1) && (!resp2 || (resp != resp2)))
+	while (time_before(jiffies, done) && (resp != resp1) && (!resp2 || (resp != resp2)))
 	{
 		if (jiffies != now)
 		{
@@ -257,7 +257,7 @@
 			resp = *temp;
 		}
 	}
-	return(jiffies < done ? jiffies - start : -1);
+	return(time_before(jiffies, done) ? jiffies - start : -1);
 }
 
 /* constants for Z80 CPU speed */
@@ -444,7 +444,7 @@
 
 	waiting = 1;
 	len = 0;
-	while (waiting && (jiffies <= jiffs))
+	while (waiting && time_before_eq(jiffies, jiffs))
 	{
 		if (waiting++ % 3) 
 		{

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