[PATCH] pktcdvd: remove unused variable From: "Gabriel A. Devenyi" 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 Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/block/pktcdvd.c =================================================================== --- linux-kj.orig/drivers/block/pktcdvd.c 2005-09-21 01:25:44.000000000 +0400 +++ linux-kj/drivers/block/pktcdvd.c 2005-09-21 01:51:28.000000000 +0400 @@ -511,14 +511,11 @@ static void pkt_queue_bio(struct pktcdvd */ 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;