]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Remove unneeded goto out logic
authorSteven Rostedt <rostedt@goodmis.org>
Sun, 24 Aug 2025 13:39:12 +0000 (09:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:46 +0000 (16:28 +0200)
commit648e01a023cbdc93f52e90d5dc1b9d33f57a0361
tree0cf29f80bd78271edae477dcee54c812c2362720
parentc09dd3773b5950e9cfb6c9b9a5f6e36d06c62677
tracing: Remove unneeded goto out logic

[ Upstream commit c89504a703fb779052213add0e8ed642f4a4f1c8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace.c