mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 18:09:57 +00:00
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: Fabian Frederick <fabf@skynet.be> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
9096032fbc
commit
3f4d8f78a0
1 changed files with 2 additions and 4 deletions
|
@ -6071,10 +6071,8 @@ destroy_trace_option_files(struct trace_option_dentry *topts)
|
|||
if (!topts)
|
||||
return;
|
||||
|
||||
for (cnt = 0; topts[cnt].opt; cnt++) {
|
||||
if (topts[cnt].entry)
|
||||
debugfs_remove(topts[cnt].entry);
|
||||
}
|
||||
for (cnt = 0; topts[cnt].opt; cnt++)
|
||||
debugfs_remove(topts[cnt].entry);
|
||||
|
||||
kfree(topts);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue