OSDN Git Service

dasd: remove dead code
authorJens Axboe <axboe@kernel.dk>
Thu, 25 Oct 2018 09:07:57 +0000 (11:07 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 20:42:32 +0000 (13:42 -0700)
commit583d6535cb9dadfd2678acfad27231076eeccf8e
treed6a68e63542877a9a86cf420b5d407997b39f9e7
parentc6f2882691e8fd128083abdcc3c5aa5b410c2367
dasd: remove dead code

Since e443343e509a we haven't had a request_fn attached to
this driver, hence any code inside an if (q->request_fn) is
unreachable.

Fixes: e443343e509a ("s390/dasd: blk-mq conversion")
[sth: Keep and fix the dasd_info->chanq_len counter.]
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/s390/block/dasd_ioctl.c