diff options
| -rw-r--r-- | drivers/pci/hotplug/cpqphp_sysfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/cpqphp_sysfs.c b/drivers/pci/hotplug/cpqphp_sysfs.c index 4a392c44e3d3..d81648f71425 100644 --- a/drivers/pci/hotplug/cpqphp_sysfs.c +++ b/drivers/pci/hotplug/cpqphp_sysfs.c | |||
| @@ -216,8 +216,7 @@ void cpqhp_create_debugfs_files(struct controller *ctrl) | |||
| 216 | 216 | ||
| 217 | void cpqhp_remove_debugfs_files(struct controller *ctrl) | 217 | void cpqhp_remove_debugfs_files(struct controller *ctrl) |
| 218 | { | 218 | { |
| 219 | if (ctrl->dentry) | 219 | debugfs_remove(ctrl->dentry); |
| 220 | debugfs_remove(ctrl->dentry); | ||
| 221 | ctrl->dentry = NULL; | 220 | ctrl->dentry = NULL; |
| 222 | } | 221 | } |
| 223 | 222 | ||
