Commit 1a23e06c authored by huhai's avatar huhai Committed by Jens Axboe
Browse files

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: default avatarhuhai <huhai@tj.kylinos.cn>
Acked-by: default avatarPaolo Valente <paolo.valente@linaro.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent b6e68ee8
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;
}