[PATCH, TRIVIAL] kill warnings in ide-scsi.c

From: Peter Chubb
Date: Mon Aug 11 2003 - 00:37:18 EST



Hi,
ide-scsi.c has a pointer to a struct request_queue in its
struct driver; thus there's no need to dereference to get a pointer.

This kills two warnings.

===== drivers/scsi/ide-scsi.c 1.27 vs edited =====
--- 1.27/drivers/scsi/ide-scsi.c Mon Jul 7 04:14:29 2003
+++ edited/drivers/scsi/ide-scsi.c Mon Aug 11 14:34:57 2003
@@ -872,7 +872,7 @@
continue;
}
/* no, but is it queued in the ide subsystem? */
- if (elv_queue_empty(&drive->queue)) {
+ if (elv_queue_empty(drive->queue)) {
spin_unlock_irqrestore(&ide_lock, flags);
return SUCCESS;
}
@@ -899,7 +899,7 @@
schedule_timeout(1);
}
/* now nuke the drive queue */
- while ((req = elv_next_request(&drive->queue))) {
+ while ((req = elv_next_request(drive->queue))) {
blkdev_dequeue_request(req);
end_that_request_last(req);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/