summaryrefslogtreecommitdiff
path: root/kernel/trace
diff options
context:
space:
mode:
authorWang ShaoBo <bobo.shaobowang@huawei.com>2022-11-23 14:51:24 +0800
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-02-18 14:34:36 -0500
commit7568a21e52f60930ba8ae7897c2521bdab3ef5a4 (patch)
tree79f6166539220464cd61f177830931eea666237e /kernel/trace
parente7bb66f79a7b19a47b3eff745ea9f7ba1ae76032 (diff)
tracing: Remove unnecessary NULL assignment
Remove unnecessary NULL assignment int create_new_subsystem(). Link: https://lkml.kernel.org/r/20221123065124.3982439-1-bobo.shaobowang@huawei.com Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_events.c2
1 files changed, 0 insertions, 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;