Skip to contentSkip to conversation

tracing: Remove unnecessary NULL assignment

PATCH New Wang ShaoBo 1 participant 1 message Nov 23, 2022 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tracing: Remove unnecessary NULL assignment

Remove unnecessary NULL assignment int create_new_subsystem().

---
 kernel/trace/trace_events.c | 2 --
 1 file changed, 2 deletions(-)
kernel/trace/trace_events.c +0 -2
index 0356cae0cf74..728cdb72a190 100644
@@ -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;
Signature · 1 line
2.25.1