diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-11-07 14:48:33 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-17 19:48:35 +0100 |
commit | 906ed10bc6871edc35c57a78e3a1da9dcb734545 (patch) | |
tree | 8b9fd6cafa5bb5c94f1081f368aa5d1fd71214fc | |
parent | 74de9e7ba7ad398875edc9e3700cb4d0dfcffa23 (diff) | |
download | linux-stable-906ed10bc6871edc35c57a78e3a1da9dcb734545.tar.gz linux-stable-906ed10bc6871edc35c57a78e3a1da9dcb734545.tar.bz2 linux-stable-906ed10bc6871edc35c57a78e3a1da9dcb734545.zip |
ASoC: core: Fix compile warning with CONFIG_DEBUG_FS=n
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@suse.de>
Link: https://lore.kernel.org/r/20191107134833.1502-1-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | sound/soc/soc-pcm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index a6e96cf1d8ff..d07026a846b9 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -1148,7 +1148,9 @@ static int dpcm_be_connect(struct snd_soc_pcm_runtime *fe, { 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) { |