diff options
| author | Liang Luo <luoliang@kylinos.cn> | 2026-06-08 15:18:42 +0800 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-06-09 10:28:08 +0200 |
| commit | 76124a050ddbc8b252172205ab04f10a83c03a4d (patch) | |
| tree | fdf8bb0461418e76a0b7e1cc299c05a65f94102e /kernel | |
| parent | 29922fdfc2a4008d66418bedd0ebf5038fc54efa (diff) | |
| download | linux-next-76124a050ddbc8b252172205ab04f10a83c03a4d.tar.gz linux-next-76124a050ddbc8b252172205ab04f10a83c03a4d.zip | |
sched/core: Combine separate 'else' and 'if' statements
The kernel coding style recommends using 'else if' instead of
placing 'if' on a separate line after 'else'. This change makes
the code consistent with the rest of the kernel codebase.
Signed-off-by: Liang Luo <luoliang@kylinos.cn>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260608071842.325159-1-luoliang@kylinos.cn
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index e745c58671ed..2f4530eb543f 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3816,8 +3816,7 @@ ttwu_do_activate(struct rq *rq, struct task_struct *p, int wake_flags, en_flags |= ENQUEUE_RQ_SELECTED; if (wake_flags & WF_MIGRATED) en_flags |= ENQUEUE_MIGRATED; - else - if (p->in_iowait) { + else if (p->in_iowait) { delayacct_blkio_end(p); atomic_dec(&task_rq(p)->nr_iowait); } |
