Commit 2decd16f authored by liqiong's avatar liqiong Committed by Steven Rostedt (Google)

tracing: Cleanup code by removing init "char *name"

The pointer is assigned to "type->name" anyway. no need to
initialize with "preemption".

Link: https://lkml.kernel.org/r/20220513075221.26275-1-liqiong@nfschina.comSigned-off-by: default avatarliqiong <liqiong@nfschina.com>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent 2d601b98
...@@ -4276,9 +4276,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter) ...@@ -4276,9 +4276,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter)
struct tracer *type = iter->trace; struct tracer *type = iter->trace;
unsigned long entries; unsigned long entries;
unsigned long total; unsigned long total;
const char *name = "preemption"; const char *name = type->name;
name = type->name;
get_total_entries(buf, &total, &entries); get_total_entries(buf, &total, &entries);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment