Commit 7568a21e authored by Wang ShaoBo's avatar Wang ShaoBo Committed by Steven Rostedt (Google)
Browse files

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: default avatarWang ShaoBo <bobo.shaobowang@huawei.com>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent e7bb66f7
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -2261,8 +2261,6 @@ create_new_subsystem(const char *name)
	if (!system->name)
	if (!system->name)
		goto out_free;
		goto out_free;


	system->filter = NULL;

	system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL);
	system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL);
	if (!system->filter)
	if (!system->filter)
		goto out_free;
		goto out_free;