OSDN Git Service

ASoC: soc-pcm: Remove unused 'debugfs_dpcm_state' entry
authorFabio Estevam <fabio.estevam@nxp.com>
Sat, 29 Jul 2017 14:40:55 +0000 (11:40 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 31 Jul 2017 14:17:51 +0000 (15:17 +0100)
'debugfs_dpcm_state' member from structure snd_soc_pcm_runtime
is never used at all, so it is safe to remove it.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-pcm.c

index 9c94b97..230b8ee 100644 (file)
@@ -1240,7 +1240,6 @@ struct snd_soc_pcm_runtime {
        struct delayed_work delayed_work;
 #ifdef CONFIG_DEBUG_FS
        struct dentry *debugfs_dpcm_root;
-       struct dentry *debugfs_dpcm_state;
 #endif
 
        unsigned int num; /* 0-based and monotonic increasing */
index dcc5ece..2ddf6aa 100644 (file)
@@ -3010,8 +3010,7 @@ void soc_dpcm_debugfs_add(struct snd_soc_pcm_runtime *rtd)
                return;
        }
 
-       rtd->debugfs_dpcm_state = debugfs_create_file("state", 0444,
-                                               rtd->debugfs_dpcm_root,
-                                               rtd, &dpcm_state_fops);
+       debugfs_create_file("state", 0444, rtd->debugfs_dpcm_root,
+                           rtd, &dpcm_state_fops);
 }
 #endif