mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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.com Signed-off-by: liqiong <liqiong@nfschina.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
parent
2d601b9864
commit
2decd16f47
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue