diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-26 13:18:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-09 19:13:03 -0400 |
commit | 64024d9f2af45552b93d9d07d0119fe1855ca45f (patch) | |
tree | 3bcff21cb02d3e42cae7eb60e325a86081f0a808 /drivers/usb/host/fhci-dbg.c | |
parent | 3632eba532fce0651f69d605177b53ff8d91d91e (diff) |
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>
Diffstat (limited to 'drivers/usb/host/fhci-dbg.c')
-rw-r--r-- | drivers/usb/host/fhci-dbg.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/host/fhci-dbg.c b/drivers/usb/host/fhci-dbg.c index f238cb37305c..b58e7a60913a 100644 --- a/drivers/usb/host/fhci-dbg.c +++ b/drivers/usb/host/fhci-dbg.c | |||
@@ -129,11 +129,7 @@ void fhci_dfs_destroy(struct fhci_hcd *fhci) | |||
129 | if (!fhci->dfs_root) | 129 | if (!fhci->dfs_root) |
130 | return; | 130 | return; |
131 | 131 | ||
132 | if (fhci->dfs_irq_stat) | 132 | debugfs_remove(fhci->dfs_irq_stat); |
133 | debugfs_remove(fhci->dfs_irq_stat); | 133 | debugfs_remove(fhci->dfs_regs); |
134 | |||
135 | if (fhci->dfs_regs) | ||
136 | debugfs_remove(fhci->dfs_regs); | ||
137 | |||
138 | debugfs_remove(fhci->dfs_root); | 134 | debugfs_remove(fhci->dfs_root); |
139 | } | 135 | } |