diff options
author | Wang ShaoBo <bobo.shaobowang@huawei.com> | 2022-11-23 14:51:24 +0800 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-02-18 14:34:36 -0500 |
commit | 7568a21e52f60930ba8ae7897c2521bdab3ef5a4 (patch) | |
tree | 79f6166539220464cd61f177830931eea666237e /kernel/trace/trace_events.c | |
parent | e7bb66f79a7b19a47b3eff745ea9f7ba1ae76032 (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/trace_events.c')
-rw-r--r-- | kernel/trace/trace_events.c | 2 |
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; |