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

Commit 64024d9f authored by Fabian Frederick's avatar Fabian Frederick Committed by Greg Kroah-Hartman
Browse files

drivers/usb/host/fhci-dbg.c: remove unnecessary null test before debugfs_remove



This fixes 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 avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3632eba5
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -129,11 +129,7 @@ void fhci_dfs_destroy(struct fhci_hcd *fhci)
	if (!fhci->dfs_root)
		return;

	if (fhci->dfs_irq_stat)
	debugfs_remove(fhci->dfs_irq_stat);

	if (fhci->dfs_regs)
	debugfs_remove(fhci->dfs_regs);

	debugfs_remove(fhci->dfs_root);
}