[-next] tracing: Remove unnecessary NULL assignment

Message ID 20221123065124.3982439-1-bobo.shaobowang@huawei.com
State New
Headers
Series [-next] tracing: Remove unnecessary NULL assignment |

Commit Message

Wangshaobo (bobo) Nov. 23, 2022, 6:51 a.m. UTC
  Remove unnecessary NULL assignment int create_new_subsystem().

Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com>
---
 kernel/trace/trace_events.c | 2 --
 1 file changed, 2 deletions(-)
  

Patch

diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 0356cae0cf74..728cdb72a190 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;