Skip to content

Commit 883cc35

Browse files
committed
sched_ext: Remove a meaningless conditional goto in scx_select_cpu_dfl()
scx_select_cpu_dfl() has a meaningless conditional goto at the end. Remove it. No functional changes. Signed-off-by: Tejun Heo <[email protected]> Cc: Andrea Righi <[email protected]>
1 parent 37477d9 commit 883cc35

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/sched/ext_idle.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,6 @@ s32 scx_select_cpu_dfl(struct task_struct *p, s32 prev_cpu, u64 wake_flags, u64
584584
* increasing distance.
585585
*/
586586
cpu = scx_pick_idle_cpu(p->cpus_ptr, node, flags);
587-
if (cpu >= 0)
588-
goto out_unlock;
589587

590588
out_unlock:
591589
rcu_read_unlock();

0 commit comments

Comments
 (0)