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:
Bart Van Assche
2023-04-11 13:11:11 -07:00
committed by Treehugger Robot
parent 4c21e16028
commit 0545a08098

View File

@@ -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,