]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-dapm: cleanup cppcheck warning at snd_soc_dapm_new_controls()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 5 Aug 2021 01:11:41 +0000 (10:11 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 5 Aug 2021 14:37:39 +0000 (15:37 +0100)
commit9c29cb4f178d997990b81ebaaed45e1f39aff735
tree834b1388a3c2c00ddfe241eb435020eb4c33f192
parent5beebc414cb3468c2a078cde7bb70aa84d03925e
ASoC: soc-dapm: cleanup cppcheck warning at snd_soc_dapm_new_controls()

This patch cleanups below cppcheck warning.

sound/soc/soc-dapm.c:3786:30: style: The scope of the variable 'w' can be reduced. [variableScope]
 struct snd_soc_dapm_widget *w;
                             ^

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