Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabian Frederick and committed by
Bjorn Helgaas
5d37818b 0d25d35c

+1 -2
+1 -2
drivers/pci/hotplug/cpqphp_sysfs.c
··· 216 216 217 217 void cpqhp_remove_debugfs_files(struct controller *ctrl) 218 218 { 219 - if (ctrl->dentry) 220 - debugfs_remove(ctrl->dentry); 219 + debugfs_remove(ctrl->dentry); 221 220 ctrl->dentry = NULL; 222 221 } 223 222