patch-2.0.16 linux/drivers/block/floppy.c

Next file: linux/drivers/isdn/icn/icn.c
Previous file: linux/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.15/linux/drivers/block/floppy.c linux/drivers/block/floppy.c
@@ -966,7 +966,7 @@
 		return 1;
 	}
 
-	if (jiffies - delay < 0){
+	if ((signed) (jiffies - delay) < 0){
 		del_timer(&fd_timer);
 		fd_timer.function = function;
 		fd_timer.expires = delay;
@@ -1415,7 +1415,7 @@
 		 * again just before spinup completion. Beware that
 		 * after scandrives, we must again wait for selection.
 		 */
-		if (ready_date - jiffies > DP->select_delay){
+		if ((signed) (ready_date - jiffies) > DP->select_delay){
 			ready_date -= DP->select_delay;
 			function = (timeout_fn) floppy_start;
 		} else

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