Skip to content

Commit

Permalink
ASoC: core: Initialize err for snd_soc_put_volsw_sx
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian Austin authored and broonie committed Apr 3, 2012
1 parent 1d99f24 commit 27f1d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 27f1d75

Please sign in to comment.