diff options
author | 2021-08-05 10:11:37 +0900 | |
---|---|---|
committer | 2021-08-05 15:37:38 +0100 | |
commit | fd136fdbf4a66add171eb0cedf40f430bda9c139 (patch) | |
tree | f87c66ecb4832f88ee2169af04a43fa34778fe08 /sound/soc/soc-dapm.c | |
parent | ASoC: soc-dapm: cleanup cppcheck warning at snd_soc_dapm_add_routes() (diff) | |
download | linux-fd136fdbf4a66add171eb0cedf40f430bda9c139.tar.gz linux-fd136fdbf4a66add171eb0cedf40f430bda9c139.tar.bz2 linux-fd136fdbf4a66add171eb0cedf40f430bda9c139.zip |
ASoC: soc-dapm: cleanup cppcheck warning at snd_soc_dapm_weak_routes()
This patch cleanups below cppcheck warning.
sound/soc/soc-dapm.c:3190:9: style: The scope of the variable 'err' can be reduced. [variableScope]
int i, err;
^
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87lf5gu246.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 9dd50b4899e3..6e7fc8979f89 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3188,12 +3188,12 @@ static int snd_soc_dapm_weak_route(struct snd_soc_dapm_context *dapm, int snd_soc_dapm_weak_routes(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num) { - int i, err; + int i; int ret = 0; mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_INIT); for (i = 0; i < num; i++) { - err = snd_soc_dapm_weak_route(dapm, route); + int err = snd_soc_dapm_weak_route(dapm, route); if (err) ret = err; route++; |