projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3632eba
)
drivers/usb/host/fhci-dbg.c: remove unnecessary null test before debugfs_remove
author
Fabian Frederick
<fabf@skynet.be>
Thu, 26 Jun 2014 17:18:38 +0000
(19:18 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 23:13:03 +0000
(16:13 -0700)
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>
drivers/usb/host/fhci-dbg.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/host/fhci-dbg.c
b/drivers/usb/host/fhci-dbg.c
index f238cb37305c773443047347ebc2829f0fa6f4b2..b58e7a60913a27e7b379381ec71ac51292e9f1cd 100644
(file)
--- 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)
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_irq_stat);
+ debugfs_remove(fhci->dfs_regs);
debugfs_remove(fhci->dfs_root);
}