diff options
author | huhai <huhai@tj.kylinos.cn> | 2020-12-25 21:00:16 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-01-24 18:20:47 -0700 |
commit | 1a23e06cdab2be07cbda460c6417d7de564c48e6 (patch) | |
tree | ffeeb11642ef2017a255a6a06ec155892685e609 /block/bfq-wf2q.c | |
parent | b6e68ee82585f2ee890b0a897a6aacbf49a467bb (diff) | |
download | linux-1a23e06cdab2be07cbda460c6417d7de564c48e6.tar.gz linux-1a23e06cdab2be07cbda460c6417d7de564c48e6.tar.bz2 linux-1a23e06cdab2be07cbda460c6417d7de564c48e6.zip |
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 <huhai@tj.kylinos.cn>
Acked-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-wf2q.c')
-rw-r--r-- | block/bfq-wf2q.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/bfq-wf2q.c b/block/bfq-wf2q.c index 26776bdbdf36..070e34a7feb1 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; } |