ASoC: soc-dapm: cleanup cppcheck warning at dapm_wcache_lookup()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 5 Aug 2021 01:10:55 +0000 (10:10 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 5 Aug 2021 14:37:28 +0000 (15:37 +0100)
commit7453d6d45d5587d3d4d4fdaec746db74ac5f7429
tree3bf619e95bddb9a0e58db15a8b2659a281e9b159
parentf2553d46783409656d82e46913354ed0c058cc0c
ASoC: soc-dapm: cleanup cppcheck warning at dapm_wcache_lookup()

This patch cleanups below cppcheck warning.

sound/soc/soc-dapm.c:653:20: style: The scope of the variable 'wlist' can be reduced. [variableScope]
 struct list_head *wlist;
                   ^
sound/soc/soc-dapm.c:655:6: style: The scope of the variable 'i' can be reduced. [variableScope]
 int i = 0;
     ^

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