]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-topology: cleanup cppcheck warning at soc_tplg_kcontrol_elems_load()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 2 Aug 2021 06:01:04 +0000 (15:01 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 2 Aug 2021 11:21:30 +0000 (12:21 +0100)
commit797d5b5853db04b053cf690bb9682a1d1368a7e4
tree632346f12c49f83ae0f902c5b4aef12102c9f84f
parent6a1a3040a7b69babc90f6ab0d35440d2184513ee
ASoC: soc-topology: cleanup cppcheck warning at soc_tplg_kcontrol_elems_load()

This patch cleanups below cppcheck warning.

sound/soc/soc-topology.c:1038:31: style: The scope of the variable 'control_hdr' can be reduced. [variableScope]
 struct snd_soc_tplg_ctl_hdr *control_hdr;
                              ^

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