提交 2decd16f 编写于 作者: L liqiong 提交者: 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: Nliqiong <liqiong@nfschina.com>
Signed-off-by: NSteven Rostedt (Google) <rostedt@goodmis.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册