Commit 27f1d759 authored by Brian Austin's avatar Brian Austin Committed by Mark Brown

ASoC: core: Initialize err for snd_soc_put_volsw_sx

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: default avatarBrian Austin <brian.austin@cirrus.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 1d99f243
...@@ -2586,7 +2586,7 @@ int snd_soc_put_volsw_sx(struct snd_kcontrol *kcontrol, ...@@ -2586,7 +2586,7 @@ int snd_soc_put_volsw_sx(struct snd_kcontrol *kcontrol,
int max = mc->max; int max = mc->max;
int min = mc->min; int min = mc->min;
int mask = (1 << (fls(min + max) - 1)) - 1; int mask = (1 << (fls(min + max) - 1)) - 1;
int err; int err = 0;
unsigned short val, val_mask, val2 = 0; unsigned short val, val_mask, val2 = 0;
val_mask = mask << shift; val_mask = mask << shift;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment