bfq: don't duplicate code for different paths
authorhuhai <huhai@tj.kylinos.cn>
Fri, 25 Dec 2020 13:00:16 +0000 (21:00 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 01:20:47 +0000 (18:20 -0700)
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 <huhai@tj.kylinos.cn>
Acked-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-wf2q.c

index 26776bd..070e34a 100644 (file)
@@ -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;
 }