Merge tag 'driver-core-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / arch / x86 / platform / intel / iosf_mbi.c
index b393eaa798efd33588d7e797e0ab22fecbc5358f..2e796b54cbde1453461a42c7f8a524eb45159c78 100644 (file)
@@ -461,31 +461,16 @@ static struct dentry *iosf_dbg;
 
 static void iosf_sideband_debug_init(void)
 {
-       struct dentry *d;
-
        iosf_dbg = debugfs_create_dir("iosf_sb", NULL);
-       if (IS_ERR_OR_NULL(iosf_dbg))
-               return;
 
        /* mdr */
-       d = debugfs_create_x32("mdr", 0660, iosf_dbg, &dbg_mdr);
-       if (!d)
-               goto cleanup;
+       debugfs_create_x32("mdr", 0660, iosf_dbg, &dbg_mdr);
 
        /* mcrx */
-       d = debugfs_create_x32("mcrx", 0660, iosf_dbg, &dbg_mcrx);
-       if (!d)
-               goto cleanup;
+       debugfs_create_x32("mcrx", 0660, iosf_dbg, &dbg_mcrx);
 
        /* mcr - initiates mailbox tranaction */
-       d = debugfs_create_file("mcr", 0660, iosf_dbg, &dbg_mcr, &iosf_mcr_fops);
-       if (!d)
-               goto cleanup;
-
-       return;
-
-cleanup:
-       debugfs_remove_recursive(d);
+       debugfs_create_file("mcr", 0660, iosf_dbg, &dbg_mcr, &iosf_mcr_fops);
 }
 
 static void iosf_debugfs_init(void)