]> Git Repo - linux.git/blobdiff - drivers/misc/mic/cosm/cosm_debugfs.c
efi/x86: add headroom to decompressor BSS to account for setup block
[linux.git] / drivers / misc / mic / cosm / cosm_debugfs.c
index 8e3f4589f16d47b707a5578314f0deb96eceeac6..68a731fd86deea4993c988a0caf18c0af4aa6341 100644 (file)
@@ -93,8 +93,6 @@ void cosm_create_debug_dir(struct cosm_device *cdev)
 
        scnprintf(name, sizeof(name), "mic%d", cdev->index);
        cdev->dbg_dir = debugfs_create_dir(name, cosm_dbg);
-       if (!cdev->dbg_dir)
-               return;
 
        debugfs_create_file("log_buf", 0444, cdev->dbg_dir, cdev,
                            &log_buf_fops);
@@ -104,17 +102,12 @@ 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);
 }
 
 void cosm_init_debugfs(void)
 {
        cosm_dbg = debugfs_create_dir(KBUILD_MODNAME, NULL);
-       if (!cosm_dbg)
-               pr_err("can't create debugfs dir\n");
 }
 
 void cosm_exit_debugfs(void)
This page took 0.038078 seconds and 4 git commands to generate.