Skip to content

Commit 7568a21

Browse files
Wang ShaoBorostedt
authored andcommitted
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>
1 parent e7bb66f commit 7568a21

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

kernel/trace/trace_events.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,8 +2261,6 @@ create_new_subsystem(const char *name)
22612261
if (!system->name)
22622262
goto out_free;
22632263

2264-
system->filter = NULL;
2265-
22662264
system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL);
22672265
if (!system->filter)
22682266
goto out_free;

0 commit comments

Comments
 (0)