Skip to content

Commit fa4820b

Browse files
tttturtle-russrostedt
authored andcommitted
tracing: Fix indentation of return statement in print_trace_fmt()
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>
1 parent 804c4a2 commit fa4820b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/trace/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3537,7 +3537,7 @@ static enum print_line_t print_trace_fmt(struct trace_iterator *iter)
35373537
/* ftrace and system call events are still OK */
35383538
if ((event->type > __TRACE_LAST_TYPE) &&
35393539
!is_syscall_event(event))
3540-
return print_event_fields(iter, event);
3540+
return print_event_fields(iter, event);
35413541
}
35423542
return event->funcs->trace(iter, sym_flags, event);
35433543
}

0 commit comments

Comments
 (0)