[PATCH 5.4 059/203] ASoC: core: Fix compile warning with CONFIG_DEBUG_FS=n

From: Greg Kroah-Hartman
Date: Thu Jan 16 2020 - 18:21:29 EST


From: Takashi Iwai <tiwai@xxxxxxx>

commit bd0b609e0c3362cb167c51d4bd4330d79fc00987 upstream.

Paper over a compile warning:
sound/soc/soc-pcm.c:1185:8: warning: unused variable ânameâ

Fixes: 0632fa042541 ("ASoC: core: Fix pcm code debugfs error")
Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
Link: https://lore.kernel.org/r/20191107134833.1502-1-tiwai@xxxxxxx
Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
sound/soc/soc-pcm.c | 2 ++
1 file changed, 2 insertions(+)

--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -1148,7 +1148,9 @@ static int dpcm_be_connect(struct snd_so
{
struct snd_soc_dpcm *dpcm;
unsigned long flags;
+#ifdef CONFIG_DEBUG_FS
char *name;
+#endif

/* only add new dpcms */
for_each_dpcm_be(fe, stream, dpcm) {