mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 08:50:53 +07:00
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: Brian Austin <brian.austin@cirrus.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
1d99f2436d
commit
27f1d75921
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user