mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
ANDROID: block: Simplify blk_mq_sched_bypass_insert()
Combine two return statements into a single return statement. Bug: 275581839 Change-Id: I543e3dad88766157c0c334def4d525c10334e476 Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
4c21e16028
commit
0545a08098
@@ -425,10 +425,7 @@ static bool blk_mq_sched_bypass_insert(struct request *rq)
|
||||
* passthrough request is added to scheduler queue, there isn't any
|
||||
* chance to dispatch it given we prioritize requests in hctx->dispatch.
|
||||
*/
|
||||
if ((rq->rq_flags & RQF_FLUSH_SEQ) || blk_rq_is_passthrough(rq))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return (rq->rq_flags & RQF_FLUSH_SEQ) || blk_rq_is_passthrough(rq);
|
||||
}
|
||||
|
||||
void blk_mq_sched_insert_request(struct request *rq, bool at_head,
|
||||
|
||||
Reference in New Issue
Block a user