patch-2.1.106 linux/drivers/scsi/ncr53c8xx.c

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

diff -u --recursive --new-file v2.1.105/linux/drivers/scsi/ncr53c8xx.c linux/drivers/scsi/ncr53c8xx.c
@@ -369,8 +369,8 @@
 
 static void DELAY(long us)
 {
-	if (us/1000) mdelay(us/1000);
-	if (us%1000) udelay(us%1000);
+	for (;us>1000;us-=1000) udelay(1000);
+	if (us) udelay(us);
 }
 
 /*

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