Skip to content

Commit

Permalink
PCI: cpqphp: Remove unnecessary null test before debugfs_remove()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabian Frederick authored and Bjorn Helgaas committed Jul 7, 2014
1 parent 0d25d35 commit 5d37818
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/pci/hotplug/cpqphp_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 5d37818

Please sign in to comment.