tracing: Remove unused variable in tracing_trace_options_show()

The flags and opts used in tracing_trace_options_show() now come directly
from the trace array "current_trace_flags" and not the current_trace. The
variable "trace" was still being assigned to tr->current_trace but never
used. This caused a warning in clang.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20251117120637.43ef995d@gandalf.local.home
Reported-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Tested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Closes: https://lore.kernel.org/all/aRtHWXzYa8ijUIDa@black.igk.intel.com/
Fixes: 428add559b ("tracing: Have tracer option be instance specific")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
Steven Rostedt
2025-11-17 12:06:37 -05:00
committed by Steven Rostedt (Google)
parent ac87b220a6
commit 49c1364c7c

View File

@@ -5167,7 +5167,6 @@ static int tracing_trace_options_show(struct seq_file *m, void *v)
struct tracer_opt *trace_opts;
struct trace_array *tr = m->private;
struct tracer_flags *flags;
struct tracer *trace;
u32 tracer_flags;
int i;
@@ -5184,8 +5183,6 @@ static int tracing_trace_options_show(struct seq_file *m, void *v)
if (!flags || !flags->opts)
return 0;
trace = tr->current_trace;
tracer_flags = flags->val;
trace_opts = flags->opts;