ASoC: soc-ops: cleanup cppcheck warning at snd_soc_put_volsw_sx()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 3 Aug 2021 05:00:37 +0000 (14:00 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 3 Aug 2021 17:27:11 +0000 (18:27 +0100)
commit58f42dfd7977599b060996491412fcec688d025d
tree408fc699942f1828b6a5d2a229ae7eb20a891a90
parentb189dde9d3e54b607791e9cdf28c7881eac8a37e
ASoC: soc-ops: cleanup cppcheck warning at snd_soc_put_volsw_sx()

This patch cleanups below cppcheck warning.

sound/soc/soc-ops.c:410:30: style: The scope of the variable 'val2' can be reduced. [variableScope]
 unsigned int val, val_mask, val2 = 0;
                             ^

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