ASoC: soc-pcm: Remove unused 'debugfs_dpcm_state' entry
PATCH 1/1 ASoC: soc-pcm: Remove unused 'debugfs_dpcm_state' entry
From: Fabio Estevam <[email protected]>
'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 <[email protected]>
--- include/sound/soc.h | 1 - sound/soc/soc-pcm.c | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-)
include/sound/soc.h +0 -1
@@ -1233,7 +1233,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 */
sound/soc/soc-pcm.c +2 -3
@@ -3000,8 +3000,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
Signature · 1 line
2.7.4