projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d99f24
)
ASoC: core: Initialize err for snd_soc_put_volsw_sx
author
Brian Austin
<brian.austin@cirrus.com>
Tue, 3 Apr 2012 16:33:50 +0000
(11:33 -0500)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Tue, 3 Apr 2012 19:29:45 +0000
(20:29 +0100)
sound/soc/soc-core.c: In function ‘snd_soc_put_volsw_sx’:
sound/soc/soc-core.c:2600: warning: ‘err’ may be used uninitialized in this function
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/soc-core.c
b/sound/soc/soc-core.c
index 7b1a4fd932d742f48465301ef834fe14f7b02cdb..a6922bc96184419a7afea26e52360f1239ffc877 100644
(file)
--- a/
sound/soc/soc-core.c
+++ b/
sound/soc/soc-core.c
@@
-2586,7
+2586,7
@@
int snd_soc_put_volsw_sx(struct snd_kcontrol *kcontrol,
int max = mc->max;
int min = mc->min;
int mask = (1 << (fls(min + max) - 1)) - 1;
- int err;
+ int err
= 0
;
unsigned short val, val_mask, val2 = 0;
val_mask = mask << shift;