Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d37818b authored by Fabian Frederick's avatar Fabian Frederick Committed by Bjorn Helgaas
Browse files

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: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
CC: Ryan Desfosses <ryan@desfo.org>
parent 0d25d35c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -216,7 +216,6 @@ void cpqhp_create_debugfs_files(struct controller *ctrl)

void cpqhp_remove_debugfs_files(struct controller *ctrl)
{
	if (ctrl->dentry)
	debugfs_remove(ctrl->dentry);
	ctrl->dentry = NULL;
}