]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/ieee802154/adf7242.c
ieee802154: no need to check return value of debugfs_create functions
[linux.git] / drivers / net / ieee802154 / adf7242.c
index c9392d70e639dfdef3f20f1afd693dc0c8d760e5..5a37514e423477cee4a4de4ccda29937a25e688b 100644 (file)
@@ -1158,23 +1158,16 @@ static int adf7242_stats_show(struct seq_file *file, void *offset)
        return 0;
 }
 
-static int adf7242_debugfs_init(struct adf7242_local *lp)
+static void adf7242_debugfs_init(struct adf7242_local *lp)
 {
        char debugfs_dir_name[DNAME_INLINE_LEN + 1] = "adf7242-";
-       struct dentry *stats;
 
        strncat(debugfs_dir_name, dev_name(&lp->spi->dev), DNAME_INLINE_LEN);
 
        lp->debugfs_root = debugfs_create_dir(debugfs_dir_name, NULL);
-       if (IS_ERR_OR_NULL(lp->debugfs_root))
-               return PTR_ERR_OR_ZERO(lp->debugfs_root);
 
-       stats = debugfs_create_devm_seqfile(&lp->spi->dev, "status",
-                                           lp->debugfs_root,
-                                           adf7242_stats_show);
-       return PTR_ERR_OR_ZERO(stats);
-
-       return 0;
+       debugfs_create_devm_seqfile(&lp->spi->dev, "status", lp->debugfs_root,
+                                   adf7242_stats_show);
 }
 
 static const s32 adf7242_powers[] = {