Skip to content

Commit 2decd16

Browse files
liqiongrostedt
authored andcommitted
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>
1 parent 2d601b9 commit 2decd16

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

kernel/trace/trace.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4276,9 +4276,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter)
42764276
struct tracer *type = iter->trace;
42774277
unsigned long entries;
42784278
unsigned long total;
4279-
const char *name = "preemption";
4280-
4281-
name = type->name;
4279+
const char *name = type->name;
42824280

42834281
get_total_entries(buf, &total, &entries);
42844282

0 commit comments

Comments
 (0)