]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/dma/bcm-sba-raid.c
Merge branch 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvar...
[linux.git] / drivers / dma / bcm-sba-raid.c
index fa81d0177765bad98888ebc0eaa40e2aa1980a2a..275e90fa829de8896308cc4c2dc5b604a6edee92 100644 (file)
@@ -164,7 +164,6 @@ struct sba_device {
        struct list_head reqs_free_list;
        /* DebugFS directory entries */
        struct dentry *root;
-       struct dentry *stats;
 };
 
 /* ====== Command helper routines ===== */
@@ -1716,17 +1715,11 @@ static int sba_probe(struct platform_device *pdev)
 
        /* Create debugfs root entry */
        sba->root = debugfs_create_dir(dev_name(sba->dev), NULL);
-       if (IS_ERR_OR_NULL(sba->root)) {
-               dev_err(sba->dev, "failed to create debugfs root entry\n");
-               sba->root = NULL;
-               goto skip_debugfs;
-       }
 
        /* Create debugfs stats entry */
-       sba->stats = debugfs_create_devm_seqfile(sba->dev, "stats", sba->root,
-                                                sba_debugfs_stats_show);
-       if (IS_ERR_OR_NULL(sba->stats))
-               dev_err(sba->dev, "failed to create debugfs stats file\n");
+       debugfs_create_devm_seqfile(sba->dev, "stats", sba->root,
+                                   sba_debugfs_stats_show);
+
 skip_debugfs:
 
        /* Register DMA device with Linux async framework */