Commit 26164edb authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent cd674c8d
......@@ -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;
}
if (apb1_log_task) {
kthread_stop(apb1_log_task);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment