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>
diff --git a/drivers/staging/greybus/es1.c b/drivers/staging/greybus/es1.c
index cce3155..723d8b7 100644
--- a/drivers/staging/greybus/es1.c
+++ b/drivers/staging/greybus/es1.c
@@ -558,10 +558,8 @@
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);