Commit 5d37818b authored by Fabian Frederick's avatar Fabian Frederick Committed by Bjorn Helgaas

PCI: cpqphp: Remove unnecessary null test before debugfs_remove()

Fix checkpatch warning:
"WARNING: debugfs_remove(NULL) is safe this check is probably not required"
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
CC: Ryan Desfosses <ryan@desfo.org>
parent 0d25d35c
...@@ -216,7 +216,6 @@ void cpqhp_create_debugfs_files(struct controller *ctrl) ...@@ -216,7 +216,6 @@ void cpqhp_create_debugfs_files(struct controller *ctrl)
void cpqhp_remove_debugfs_files(struct controller *ctrl) void cpqhp_remove_debugfs_files(struct controller *ctrl)
{ {
if (ctrl->dentry)
debugfs_remove(ctrl->dentry); debugfs_remove(ctrl->dentry);
ctrl->dentry = NULL; ctrl->dentry = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment