OSDN Git Service

ASoC: soc-pcm: cleanup cppcheck warning at soc_pcm_components_close()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 27 Jul 2021 02:05:38 +0000 (11:05 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 27 Jul 2021 12:14:45 +0000 (13:14 +0100)
commit33be10b563dc56c33d28562ff83065a89647e443
tree2f4b5748688d9db5842f42af72b08f9abee080f0
parent2bc3e1f21b06802e70d9ccd5f8756099ffd04eb2
ASoC: soc-pcm: cleanup cppcheck warning at soc_pcm_components_close()

This patch cleanups below cppcheck warning.

sound/soc/soc-pcm.c:631:9: style: The scope of the variable 'r' can be reduced. [variableScope]
 int i, r, ret = 0;
        ^

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