From: Paul Bolle Date: Thu, 2 Jun 2011 11:05:02 +0000 (+0200) Subject: cfq-iosched: Remove bogus check in queue_fail path X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=28304f485c3627cc5e1665b92e26eb7fcfe98088;p=linux-beck.git cfq-iosched: Remove bogus check in queue_fail path queue_fail can only be reached if cic is NULL, so its check for cic must be bogus. Signed-off-by: Paul Bolle Signed-off-by: Jens Axboe --- diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 8a02c955c610..3c7b537bf908 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -3786,9 +3786,6 @@ new_queue: return 0; queue_fail: - if (cic) - put_io_context(cic->ioc); - cfq_schedule_dispatch(cfqd); spin_unlock_irqrestore(q->queue_lock, flags); cfq_log(cfqd, "set_request fail");