Skip to content

Commit 49c1364

Browse files
committed
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: 428add5 ("tracing: Have tracer option be instance specific") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent ac87b22 commit 49c1364

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

kernel/trace/trace.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5167,7 +5167,6 @@ static int tracing_trace_options_show(struct seq_file *m, void *v)
51675167
struct tracer_opt *trace_opts;
51685168
struct trace_array *tr = m->private;
51695169
struct tracer_flags *flags;
5170-
struct tracer *trace;
51715170
u32 tracer_flags;
51725171
int i;
51735172

@@ -5184,8 +5183,6 @@ static int tracing_trace_options_show(struct seq_file *m, void *v)
51845183
if (!flags || !flags->opts)
51855184
return 0;
51865185

5187-
trace = tr->current_trace;
5188-
51895186
tracer_flags = flags->val;
51905187
trace_opts = flags->opts;
51915188

0 commit comments

Comments
 (0)