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

This patch cleanups below cppcheck warning.

sound/soc/soc-topology.c:1599:35: style: The scope of the variable 'widget' can be reduced. [variableScope]
 struct snd_soc_tplg_dapm_widget *widget;
                                  ^
sound/soc/soc-topology.c:1600:6: style: The scope of the variable 'ret' can be reduced. [variableScope]
 int ret, count, i;
     ^

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