Skip to content

Commit f4b0d31

Browse files
sunlimingrostedt
authored andcommitted
tracing: Simplify conditional compilation code in tracing_set_tracer()
Two conditional compilation directives "#ifdef CONFIG_TRACER_MAX_TRACE" are used consecutively, and no other code in between. Simplify conditional the compilation code and only use one "#ifdef CONFIG_TRACER_MAX_TRACE". Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: sunliming <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent cc72b72 commit f4b0d31

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/trace/trace.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6424,9 +6424,7 @@ int tracing_set_tracer(struct trace_array *tr, const char *buf)
64246424
synchronize_rcu();
64256425
free_snapshot(tr);
64266426
}
6427-
#endif
64286427

6429-
#ifdef CONFIG_TRACER_MAX_TRACE
64306428
if (t->use_max_tr && !had_max_tr) {
64316429
ret = tracing_alloc_snapshot_instance(tr);
64326430
if (ret < 0)

0 commit comments

Comments
 (0)