]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sched/deadline: Minor cleanup in select_task_rq_dl()
authorShrikanth Hegde <sshegde@linux.ibm.com>
Tue, 14 Oct 2025 10:03:41 +0000 (15:33 +0530)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 11 Nov 2025 16:27:55 +0000 (17:27 +0100)
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
kernel/sched/deadline.c

index 4dd4b2fb29346e94a6306ab794f3b3216ea0da05..67f540c23717341e5105b74bceffeaa9f12fb716 100644 (file)
@@ -2384,7 +2384,7 @@ select_task_rq_dl(struct task_struct *p, int cpu, int flags)
        struct rq *rq;
 
        if (!(flags & WF_TTWU))
-               goto out;
+               return cpu;
 
        rq = cpu_rq(cpu);
 
@@ -2422,7 +2422,6 @@ select_task_rq_dl(struct task_struct *p, int cpu, int flags)
        }
        rcu_read_unlock();
 
-out:
        return cpu;
 }