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:
cd674c8
)
greybus: es1: no need to check for NULL on debugfs_remove()
author
Greg Kroah-Hartman
<greg@kroah.com>
Tue, 24 Mar 2015 19:06:41 +0000
(20:06 +0100)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Tue, 24 Mar 2015 19:06:41 +0000
(20:06 +0100)
The function can, and even expects NULL, so don't check.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/es1.c
b/drivers/staging/greybus/es1.c
index cce31558573b231b160b008f6b072fe7541a9081..723d8b7a0eab06dd88ee1ed505929170027a9af4 100644
(file)
--- a/
drivers/staging/greybus/es1.c
+++ b/
drivers/staging/greybus/es1.c
@@
-558,10
+558,8
@@
static void usb_log_enable(struct es1_ap_dev *es1, int enable)
gb_debugfs_get(), NULL,
&apb1_log_fops);
} else {
- if (apb1_log_dentry) {
- debugfs_remove(apb1_log_dentry);
- apb1_log_dentry = NULL;
- }
+ debugfs_remove(apb1_log_dentry);
+ apb1_log_dentry = NULL;
if (apb1_log_task) {
kthread_stop(apb1_log_task);