Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28304f48 authored by Paul Bolle's avatar Paul Bolle Committed by Jens Axboe
Browse files

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: default avatarPaul Bolle <pebolle@tiscali.nl>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent 4c49ff3f
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -3786,9 +3786,6 @@ cfq_set_request(struct request_queue *q, struct request *rq, gfp_t gfp_mask)
	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");