From: Fabian Frederick Date: Sat, 28 Jun 2014 09:44:43 +0000 (+0200) Subject: PCI: cpqphp: Remove unnecessary null test before debugfs_remove() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d37818b9ccbec660abb3a11d4ffb0aba0e3c809;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Bjorn Helgaas CC: Ryan Desfosses --- 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) void cpqhp_remove_debugfs_files(struct controller *ctrl) { - if (ctrl->dentry) - debugfs_remove(ctrl->dentry); + debugfs_remove(ctrl->dentry); ctrl->dentry = NULL; }