aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2025-05-27 18:57:53 +0000
committerSteven Rostedt (Google) <[email protected]>2025-05-29 12:24:07 +0000
commitf115d2b70bff2665f67fa8e8dc5ed9452b696c44 (patch)
tree09924a515c313dd1b936ab6b5db13e093f59fd4e /rust/helpers/platform.c
parentring-buffer: Removed unnecessary if() goto out where out is the next line (diff)
downloadkernel-f115d2b70bff2665f67fa8e8dc5ed9452b696c44.tar.gz
kernel-f115d2b70bff2665f67fa8e8dc5ed9452b696c44.zip
ring-buffer: Remove jump to out label in ring_buffer_swap_cpu()
The function ring_buffer_swap_cpu() has a bunch of jumps to the label out that simply returns "ret". There's no reason to jump to a label that simply returns a value. Just return directly from there. This goes back to almost the beginning when commit 8aabee573dff ("ring-buffer: remove unneeded get_online_cpus") was introduced. That commit removed a put_online_cpus() from that label, but never updated all the jumps to it that now no longer needed to do anything but return a value. Cc: Mathieu Desnoyers <[email protected]> Link: https://lore.kernel.org/[email protected] Reviewed-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions