Skip to content

Commit 1a23e06

Browse files
huhaiaxboe
authored andcommitted
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 <[email protected]> Acked-by: Paolo Valente <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent b6e68ee commit 1a23e06

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

block/bfq-wf2q.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ static bool bfq_update_next_in_service(struct bfq_sched_data *sd,
137137

138138
sd->next_in_service = next_in_service;
139139

140-
if (!next_in_service)
141-
return parent_sched_may_change;
142-
143140
return parent_sched_may_change;
144141
}
145142

0 commit comments

Comments
 (0)