Skip to content

Commit

Permalink
tracing: Remove unnecessary NULL assignment
Browse files Browse the repository at this point in the history
Remove unnecessary NULL assignment int create_new_subsystem().

Link: https://lkml.kernel.org/r/[email protected]

Signed-off-by: Wang ShaoBo <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
  • Loading branch information
Wang ShaoBo authored and rostedt committed Feb 18, 2023
1 parent e7bb66f commit 7568a21
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/trace/trace_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7568a21

Please sign in to comment.