]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: samsung: tm2_wm5110: remove shadowed variable
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 12 Mar 2021 18:02:31 +0000 (12:02 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 12 Mar 2021 20:45:41 +0000 (20:45 +0000)
commit5c3d7fff70f93e3edf634ffb1ac3b00270363e94
treef61b6f0777fba4f68d12256d34f3fecc1f2c21c3
parent4d69247905e21b8ba8a014d41ff3ea26787587cb
ASoC: samsung: tm2_wm5110: remove shadowed variable

cppcheck warning:

sound/soc/samsung/tm2_wm5110.c:552:26: style: Local variable 'args'
shadows outer variable [shadowVariable]
  struct of_phandle_args args;
                         ^
sound/soc/samsung/tm2_wm5110.c:504:25: note: Shadowed declaration
 struct of_phandle_args args;
                        ^
sound/soc/samsung/tm2_wm5110.c:552:26: note: Shadow variable
  struct of_phandle_args args;
                         ^
Move the top-level variable to the lower scope where it's needed.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210312180231.2741-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/tm2_wm5110.c