]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-topology: cleanup cppcheck warning at soc_tplg_dai_elems_load()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 2 Aug 2021 06:00:42 +0000 (15:00 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 2 Aug 2021 11:21:28 +0000 (12:21 +0100)
commit88189f875010f08a7be618543f930b00778fab67
tree26a0f790315e6f8a0c5ca45d9396ccd8d25d0837
parent91f97f55941957c6e513fb6b4c16e6445edd7e77
ASoC: soc-topology: cleanup cppcheck warning at soc_tplg_dai_elems_load()

This patch cleanups below cppcheck warning.

sound/soc/soc-topology.c:2350:27: style: The scope of the variable 'dai' can be reduced. [variableScope]
 struct snd_soc_tplg_dai *dai;
                          ^
sound/soc/soc-topology.c:2352:9: style: The scope of the variable 'ret' can be reduced. [variableScope]
 int i, ret;
        ^

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