lkml.org 
[lkml]   [2003]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH, TRIVIAL] kill warnings in ide-scsi.c

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.028 / U:4.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site