]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing: Remove redundant 0 value initialization
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Mon, 25 Aug 2025 12:31:59 +0000 (20:31 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 23 Sep 2025 14:31:14 +0000 (10:31 -0400)
commit8613a55ac57baf40e54633eab00c820515196113
tree0e70782ba4cb3aba3dd392cc5d4a48c8ead45a91
parentade2105e748f85eb026d26701091213855aea633
tracing: Remove redundant 0 value initialization

The saved_cmdlines_buffer struct is already zeroed by memset(). It's
redundant to initialize s->cmdline_idx to 0.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20250825123200.306272-1-liaoyuanhong@vivo.com
Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_sched_switch.c