projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29155bb
)
ASoC: soc-dapm: cleanup cppcheck warning at dapm_new_pga()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Thu, 5 Aug 2021 01:11:10 +0000
(10:11 +0900)
committer
Mark Brown
<broonie@kernel.org>
Thu, 5 Aug 2021 14:37:32 +0000
(15:37 +0100)
This patch cleanups below cppcheck warning.
sound/soc/soc-dapm.c:1063:9: style: The scope of the variable 'ret' can be reduced. [variableScope]
int i, ret;
^
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link:
https://lore.kernel.org/r/87tuk4u24x.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-dapm.c
b/sound/soc/soc-dapm.c
index 0ccc59287513bbdfbe65395cf8964e58046ecc78..50f49a545596dca930f4ef1d0951a9f24e09cf87 100644
(file)
--- a/
sound/soc/soc-dapm.c
+++ b/
sound/soc/soc-dapm.c
@@
-1060,10
+1060,10
@@
static int dapm_new_mux(struct snd_soc_dapm_widget *w)
/* create new dapm volume control */
static int dapm_new_pga(struct snd_soc_dapm_widget *w)
{
- int i
, ret
;
+ int i;
for (i = 0; i < w->num_kcontrols; i++) {
- ret = dapm_create_or_share_kcontrol(w, i);
+
int
ret = dapm_create_or_share_kcontrol(w, i);
if (ret < 0)
return ret;
}