sched: Simplify try_steal_cookie()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 1 Aug 2023 20:41:29 +0000 (22:41 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 14 Aug 2023 15:01:27 +0000 (17:01 +0200)
commitb4e1fa1e14286f7a825b10d8ebb2e9c0f77c241b
treea0b941a456dddff66f813874f5472d9bf6a9be81
parent6dafc713e3b0d8ffbd696d200d8c9dd212ddcdfc
sched: Simplify try_steal_cookie()

Use guards to reduce gotos and simplify control flow.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Link: https://lore.kernel.org/r/20230801211812.304154828@infradead.org
kernel/sched/core.c