]> www.infradead.org Git - users/dwmw2/linux.git/commit
tracing: Simplify conditional compilation code in tracing_set_tracer()
authorsunliming <sunliming@kylinos.cn>
Thu, 2 Jun 2022 14:06:13 +0000 (22:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Oct 2022 08:41:18 +0000 (09:41 +0100)
commitbd6af07e7993e304679ac21781d2d39ecdf97de0
tree9f857af40ffe409c4d2d0622093a8b8fa68f507b
parent4e3a15ca24b33961da73d54ebfd4a3fd8bcc7bd7
tracing: Simplify conditional compilation code in tracing_set_tracer()

[ Upstream commit f4b0d318097e45cbac5e14976f8bb56aa2cef504 ]

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/20220602140613.545069-1-sunliming@kylinos.cn
Signed-off-by: sunliming <sunliming@kylinos.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Stable-dep-of: a541a9559bb0 ("tracing: Do not free snapshot if tracer is on cmdline")
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/trace/trace.c