diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-07-27 11:05:51 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-07-27 13:14:50 +0100 |
commit | 9bdc573d84d8fcfe50b223350598efe4fe1cad08 (patch) | |
tree | 9b1ee466ef9869987d7c024be0ab0ab49f6c20a8 /sound/soc/soc-pcm.c | |
parent | 7931df9bf07bfe62831e559e5ffdca6f3657d92c (diff) | |
download | linux-rpi-9bdc573d84d8fcfe50b223350598efe4fe1cad08.tar.gz linux-rpi-9bdc573d84d8fcfe50b223350598efe4fe1cad08.tar.bz2 linux-rpi-9bdc573d84d8fcfe50b223350598efe4fe1cad08.zip |
ASoC: soc-pcm: cleanup cppcheck warning at dpcm_runtime_setup_be_chan()
This patch cleanups below cppcheck warning.
sound/soc/soc-pcm.c:1624:30: style: The scope of the variable 'codec_stream' can be reduced. [variableScope]
struct snd_soc_pcm_stream *codec_stream;
^
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87o8aozf28.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r-- | sound/soc/soc-pcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 04c1c0aec9b0..69893bd5be60 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -1625,7 +1625,6 @@ static void dpcm_runtime_setup_be_chan(struct snd_pcm_substream *substream) for_each_dpcm_be(fe, stream, dpcm) { struct snd_soc_pcm_runtime *be = dpcm->be; - struct snd_soc_pcm_stream *codec_stream; struct snd_soc_pcm_stream *cpu_stream; struct snd_soc_dai *dai; int i; @@ -1648,7 +1647,8 @@ static void dpcm_runtime_setup_be_chan(struct snd_pcm_substream *substream) * DAIs connected to a single CPU DAI, use CPU DAI's directly */ if (be->num_codecs == 1) { - codec_stream = snd_soc_dai_get_pcm_stream(asoc_rtd_to_codec(be, 0), stream); + struct snd_soc_pcm_stream *codec_stream = snd_soc_dai_get_pcm_stream( + asoc_rtd_to_codec(be, 0), stream); soc_pcm_hw_update_chan(hw, codec_stream); } |