OSDN Git Service

tracing: Remove unnecessary NULL assignment
authorWang ShaoBo <bobo.shaobowang@huawei.com>
Wed, 23 Nov 2022 06:51:24 +0000 (14:51 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Sat, 18 Feb 2023 19:34:36 +0000 (14:34 -0500)
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>
kernel/trace/trace_events.c

index cf3fd74..b52c4d7 100644 (file)
@@ -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;