]> www.infradead.org Git - users/dwmw2/linux.git/commit
ftrace: Remove unneeded goto jumps
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 23 Dec 2024 18:46:21 +0000 (13:46 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 24 Dec 2024 02:01:48 +0000 (21:01 -0500)
commit77e53cb2fcf2c5e81f06f4a41783d8752cf9d038
tree383d7aee0cec5ad0d83ce51e2619691396e9d75a
parentac8c3b02fc33be9deda48532326d301333d39f16
ftrace: Remove unneeded goto jumps

There are some goto jumps to exit a program to just return a value. The
code after the label doesn't free anything nor does it do any unlocks. It
simply returns the variable that was set before the jump.

Remove these unneeded goto 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>
Link: https://lore.kernel.org/20241223184941.544855549@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ftrace.c