ASoC: soc-ops: cleanup cppcheck warning at snd_soc_put_xr_sx()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 3 Aug 2021 05:01:00 +0000 (14:01 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 3 Aug 2021 17:27:14 +0000 (18:27 +0100)
commitb285b51018a7ca206401829fb83c8b967c22bfa5
treedb876878a95e8ffff20fe69fec34e8fd9c72b10b
parentb1ebecb90bf69fbd288e873bbf545061f5a6c144
ASoC: soc-ops: cleanup cppcheck warning at snd_soc_put_xr_sx()

This patch cleanups below cppcheck warning.

sound/soc/soc-ops.c:859:18: style: The scope of the variable 'regval' can be reduced. [variableScope]
 unsigned int i, regval, regmask;
                 ^
sound/soc/soc-ops.c:859:26: style: The scope of the variable 'regmask' can be reduced. [variableScope]
 unsigned int i, regval, regmask;
                         ^
sound/soc/soc-ops.c:860:6: style: The scope of the variable 'err' can be reduced. [variableScope]
 int err;
     ^

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