* [PATCH, TRIVIAL] kill warnings in ide-scsi.c
@ 2003-08-11 5:32 Peter Chubb
0 siblings, 0 replies; only message in thread
From: Peter Chubb @ 2003-08-11 5:32 UTC (permalink / raw)
To: jejb; +Cc: linux-kernel
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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-11 5:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-11 5:32 [PATCH, TRIVIAL] kill warnings in ide-scsi.c Peter Chubb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).