Commit e4a53cba authored by Gabriel A. Devenyi's avatar Gabriel A. Devenyi Committed by Linus Torvalds
Browse files

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

Found this on Coverty's linux bug database (


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
Signed-off-by: default avatarGabriel A. Devenyi <>
Signed-off-by: default avatarAdrian Bunk <>
Acked-by: default avatarPeter Osterlund <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 55e64b30
......@@ -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)
atomic_set(&pd->iosched.attention, 0);
q = bdev_get_queue(pd->bdev);
for (;;) {
struct bio *bio;
int reads_queued, writes_queued;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment