]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tracing: Remove unnecessary "goto out" that simply returns ret is trigger code
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 7 May 2025 14:53:08 +0000 (10:53 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 9 May 2025 19:19:11 +0000 (15:19 -0400)
commitf75340d73c5e25bd94f964a8e3dac9fd3e5f1475
tree6a2c8515264140a0a151ffdb072a9e039ffef78e
parentc5dd28e7fb4f63475b50df4f58311df92939d011
tracing: Remove unnecessary "goto out" that simply returns ret is trigger code

There's several functions that have "goto out;" where the label out is just:

 out:
return ret;

Simplify the code by just doing the return in the location and removing
all the out labels and jumps.

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>
Cc: Tom Zanussi <zanussi@kernel.org>
Link: https://lore.kernel.org/20250507145456.121186494@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_trigger.c