mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
greybus: es1: no need to check for NULL on debugfs_remove()
The function can, and even expects NULL, so don't check. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
parent
cd674c8d4c
commit
26164edb8f
1 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue