From: huhai Date: Fri, 25 Dec 2020 13:00:16 +0000 (+0800) Subject: bfq: don't duplicate code for different paths X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1a23e06cdab2be07cbda460c6417d7de564c48e6;p=linux.git bfq: don't duplicate code for different paths As we can see, returns parent_sched_may_change whether sd->next_in_service changes or not, so remove this judgment. Signed-off-by: huhai Acked-by: Paolo Valente Signed-off-by: Jens Axboe --- diff --git a/block/bfq-wf2q.c b/block/bfq-wf2q.c index 26776bdbdf360..070e34a7feb18 100644 --- a/block/bfq-wf2q.c +++ b/block/bfq-wf2q.c @@ -137,9 +137,6 @@ static bool bfq_update_next_in_service(struct bfq_sched_data *sd, sd->next_in_service = next_in_service; - if (!next_in_service) - return parent_sched_may_change; - return parent_sched_may_change; }