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

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: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Fabian Frederick and committed by
Greg Kroah-Hartman
64024d9f 3632eba5

+2 -6
+2 -6
drivers/usb/host/fhci-dbg.c
··· 129 129 if (!fhci->dfs_root) 130 130 return; 131 131 132 - if (fhci->dfs_irq_stat) 133 - debugfs_remove(fhci->dfs_irq_stat); 134 - 135 - if (fhci->dfs_regs) 136 - debugfs_remove(fhci->dfs_regs); 137 - 132 + debugfs_remove(fhci->dfs_irq_stat); 133 + debugfs_remove(fhci->dfs_regs); 138 134 debugfs_remove(fhci->dfs_root); 139 135 }