]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tracing: Fix indentation of return statement in print_trace_fmt()
authorHaoyang LIU <tttturtleruss@gmail.com>
Tue, 10 Feb 2026 15:39:02 +0000 (23:39 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 12 Feb 2026 02:58:21 +0000 (21:58 -0500)
The return statement inside the nested if block in print_trace_fmt()
is not properly indented, making the code structure unclear. This was
flagged by smatch as a warning.

Add proper indentation to the return statement to match the kernel
coding style and improve readability.

Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20260210153903.8041-1-tttturtleruss@gmail.com
Signed-off-by: Haoyang LIU <tttturtleruss@gmail.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c

index e884d32b7895f85b874857f482ea7a9ecb553a6d..2f6fbf9e7cafacbd4079ad567b5e475b947bc182 100644 (file)
@@ -3537,7 +3537,7 @@ static enum print_line_t print_trace_fmt(struct trace_iterator *iter)
                        /* ftrace and system call events are still OK */
                        if ((event->type > __TRACE_LAST_TYPE) &&
                            !is_syscall_event(event))
-                       return print_event_fields(iter, event);
+                               return print_event_fields(iter, event);
                }
                return event->funcs->trace(iter, sym_flags, event);
        }