ASoC: soc-pcm: cleanup cppcheck warning at soc_get_playback_capture()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 27 Jul 2021 02:05:43 +0000 (11:05 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 27 Jul 2021 12:14:46 +0000 (13:14 +0100)
commit940a1f43572316ba3320fea361db2a5200e2de0e
tree59f5ea520f396d5e712b70e290465059b423996e
parent33be10b563dc56c33d28562ff83065a89647e443
ASoC: soc-pcm: cleanup cppcheck warning at soc_get_playback_capture()

This patch cleanups below cppcheck warning.

sound/soc/soc-pcm.c:2578:22: style: The scope of the variable 'codec_dai' can be reduced. [variableScope]
 struct snd_soc_dai *codec_dai;
                     ^
sound/soc/soc-pcm.c:2580:6: style: The scope of the variable 'stream' can be reduced. [variableScope]
 int stream;
     ^

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87r1fkzf2g.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c