summaryrefslogtreecommitdiff
path: root/drivers/misc/mic/cosm/cosm_debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/mic/cosm/cosm_debugfs.c')
-rw-r--r--drivers/misc/mic/cosm/cosm_debugfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/misc/mic/cosm/cosm_debugfs.c b/drivers/misc/mic/cosm/cosm_debugfs.c
index 2fc9f4bf7001..68a731fd86de 100644
--- a/drivers/misc/mic/cosm/cosm_debugfs.c
+++ b/drivers/misc/mic/cosm/cosm_debugfs.c
@@ -102,9 +102,6 @@ void cosm_create_debug_dir(struct cosm_device *cdev)
void cosm_delete_debug_dir(struct cosm_device *cdev)
{
- if (!cdev->dbg_dir)
- return;
-
debugfs_remove_recursive(cdev->dbg_dir);
}