]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/scsi/snic/snic_trc.c
scsi: snic: no need to check return value of debugfs_create functions
[linux.git] / drivers / scsi / snic / snic_trc.c
index 458eaba24c78a5eeeff338701b431ec92dc95f5d..f23fe2f884389cb48cc5a6ec29d638ea627625e0 100644 (file)
@@ -138,12 +138,7 @@ snic_trc_init(void)
        trc->buf = (struct snic_trc_data *) tbuf;
        spin_lock_init(&trc->lock);
 
-       ret = snic_trc_debugfs_init();
-       if (ret) {
-               SNIC_ERR("Failed to create Debugfs Files.\n");
-
-               goto error;
-       }
+       snic_trc_debugfs_init();
 
        trc->max_idx = (tbuf_sz / SNIC_TRC_ENTRY_SZ);
        trc->rd_idx = trc->wr_idx = 0;
@@ -152,11 +147,6 @@ snic_trc_init(void)
                  tbuf_sz / PAGE_SIZE);
        ret = 0;
 
-       return ret;
-
-error:
-       snic_trc_free();
-
        return ret;
 } /* end of snic_trc_init */