[for-next][PATCH 3/3] tracing: Remove unnecessary NULL assignment

From: Steven Rostedt
Date: Fri Feb 17 2023 - 13:39:44 EST


From: Wang ShaoBo <bobo.shaobowang@xxxxxxxxxx>

Remove unnecessary NULL assignment int create_new_subsystem().

Link: https://lkml.kernel.org/r/20221123065124.3982439-1-bobo.shaobowang@xxxxxxxxxx

Signed-off-by: Wang ShaoBo <bobo.shaobowang@xxxxxxxxxx>
Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
---
kernel/trace/trace_events.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index cf3fd74fa675..b52c4d79eb78 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -2261,8 +2261,6 @@ create_new_subsystem(const char *name)
if (!system->name)
goto out_free;

- system->filter = NULL;
-
system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL);
if (!system->filter)
goto out_free;
--
2.39.1