tracing: Remove unneeded goto out logic
authorSteven Rostedt <rostedt@goodmis.org>
Fri, 1 Aug 2025 20:37:23 +0000 (16:37 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 1 Aug 2025 20:49:14 +0000 (16:49 -0400)
commitc89504a703fb779052213add0e8ed642f4a4f1c8
treee69f5aec823c7e8cb4574d560a3d98a33d32da30
parent623526ba8984cafdffa0eba7ee424f2e40c8a219
tracing: Remove unneeded goto out logic

Several places in the trace.c file there's a goto out where the out is
simply a return. There's no reason to jump to the out label if it's not
doing any more logic but simply returning from the function.

Replace the goto outs with a return and remove the out labels.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://lore.kernel.org/20250801203857.538726745@kernel.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c