Skip to content

Commit 65177ea

Browse files
Shrikanth HegdePeter Zijlstra
authored andcommitted
sched/deadline: Minor cleanup in select_task_rq_dl()
In select_task_rq_dl, there is only one goto statement, there is no need for it. No functional changes. Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Juri Lelli <juri.lelli@redhat.com> Link: https://patch.msgid.link/20251014100342.978936-2-sshegde@linux.ibm.com
1 parent b4bfacd commit 65177ea

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

kernel/sched/deadline.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,7 +2384,7 @@ select_task_rq_dl(struct task_struct *p, int cpu, int flags)
23842384
struct rq *rq;
23852385

23862386
if (!(flags & WF_TTWU))
2387-
goto out;
2387+
return cpu;
23882388

23892389
rq = cpu_rq(cpu);
23902390

@@ -2422,7 +2422,6 @@ select_task_rq_dl(struct task_struct *p, int cpu, int flags)
24222422
}
24232423
rcu_read_unlock();
24242424

2425-
out:
24262425
return cpu;
24272426
}
24282427

0 commit comments

Comments
 (0)