Skip to contentSkip to conversation

ASoC: soc-pcm: Remove unused 'debugfs_dpcm_state' entry

PATCH New Fabio Estevam 1 participant 1 message Jul 29, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 include/sound/soc.h | 1 -
 sound/soc/soc-pcm.c | 5 ++---
 2 files changed, 2 insertions(+), 4 deletions(-)
include/sound/soc.h +0 -1
index 8f9376f..9d6e1db 100644
@@ -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
index 7d3859e..24148de 100644
@@ -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