projects/linux·commit e4a53cba

[PATCH] drivers/block/pktcdvd.c: remove write-only variable in pkt_iosched_process_queue()

e4a53cba · Gabriel A. Devenyi <[email protected]> · 2005-11-08 21:35:00 -08:00

Found this on Coverty's linux bug database (http://linuxbugsdb.coverity.com).

The function pkt_iosched_process_queue makes a call to bdev_get_queue and
stores the result but never uses it, so it looks like it can be safely
removed.

Signed-off-by: Gabriel A. Devenyi <[email protected]>
Signed-off-by: Adrian Bunk <[email protected]>
Acked-by: Peter Osterlund <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
e4a53cbabc81f04e24a5570b4aa6a6384bdbfc67
Parents
55e64b30

Changes

1 files changed · +0 −3

FileStatusAddDelContent
drivers/block/pktcdvd.cmodified+0−3View file

drivers/block/pktcdvd.c

View file
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index a280e67..59e5982 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -511,14 +511,11 @@ static void pkt_queue_bio(struct pktcdvd_device *pd, struct bio *bio)
*/
static void pkt_iosched_process_queue(struct pktcdvd_device *pd)
{
- request_queue_t *q;
if (atomic_read(&pd->iosched.attention) == 0)
return;
atomic_set(&pd->iosched.attention, 0);
- q = bdev_get_queue(pd->bdev);
-
for (;;) {
struct bio *bio;
int reads_queued, writes_queued;