Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f4d8f78 authored by Fabian Frederick's avatar Fabian Frederick Committed by Steven Rostedt
Browse files

tracing: Remove unnecessary null test before debugfs_remove()

This fixes checkpatch warning:

"WARNING: debugfs_remove(NULL) is safe this check is probably not required"
Link: http://lkml.kernel.org/p/1403802871-8599-1-git-send-email-fabf@skynet.be



Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 9096032f
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -6071,10 +6071,8 @@ destroy_trace_option_files(struct trace_option_dentry *topts)
	if (!topts)
	if (!topts)
		return;
		return;


	for (cnt = 0; topts[cnt].opt; cnt++) {
	for (cnt = 0; topts[cnt].opt; cnt++)
		if (topts[cnt].entry)
		debugfs_remove(topts[cnt].entry);
		debugfs_remove(topts[cnt].entry);
	}


	kfree(topts);
	kfree(topts);
}
}