mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 08:31:37 +00:00
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: Fabian Frederick <fabf@skynet.be> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Ryan Desfosses <ryan@desfo.org>
This commit is contained in:
parent
0d25d35c98
commit
5d37818b9c
@ -216,8 +216,7 @@ void cpqhp_create_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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user