patch-2.3.46 linux/drivers/block/ataflop.c
Next file: linux/drivers/block/cpqarray.c
Previous file: linux/drivers/block/amiflop.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Wed Feb 16 10:56:44 2000
- Orig file:
v2.3.45/linux/drivers/block/ataflop.c
- Orig date:
Tue Jan 11 22:31:39 2000
diff -u --recursive --new-file v2.3.45/linux/drivers/block/ataflop.c linux/drivers/block/ataflop.c
@@ -624,7 +624,7 @@
return;
}
- if (!CURRENT) return;
+ if (QUEUE_EMPTY) return;
CURRENT->errors++;
if (CURRENT->errors >= MAX_ERRORS) {
printk(KERN_ERR "fd%d: too many errors.\n", SelectedDrive );
@@ -1450,18 +1450,18 @@
int device, drive, type;
DPRINT(("redo_fd_request: CURRENT=%08lx CURRENT->dev=%04x CURRENT->sector=%ld\n",
- (unsigned long)CURRENT, CURRENT ? CURRENT->rq_dev : 0,
- CURRENT ? CURRENT->sector : 0 ));
+ (unsigned long)CURRENT, !QUEUE_EMPTY ? CURRENT->rq_dev : 0,
+ !QUEUE_EMPTY ? CURRENT->sector : 0 ));
IsFormatting = 0;
- if (CURRENT && CURRENT->rq_status == RQ_INACTIVE){
+ if (!QUEUE_EMPTY && CURRENT->rq_status == RQ_INACTIVE){
return;
}
repeat:
- if (!CURRENT)
+ if (QUEUE_EMPTY)
goto the_end;
if (MAJOR(CURRENT->rq_dev) != MAJOR_NR)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)