diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-11-27 01:35:16 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-27 13:59:33 +0300 |
commit | d98123a76be53d570d72e04aac3e195a560ef149 (patch) | |
tree | d32f9493085d9dd2f07883ea13e5bc53361ed9dd /sound/soc/codecs/sigmadsp.c | |
parent | 141f87d4d6ab36bfcd4c5683cf90abf83b306d90 (diff) | |
download | linux-d98123a76be53d570d72e04aac3e195a560ef149.tar.xz |
ASoC: sigmadsp: uninitialized variable in sigmadsp_activate_ctrl()
The "changed" variable should be set to false at the start.
Fixes: a35daac77a03 ('ASoC: sigmadsp: Add support for fw v2')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'sound/soc/codecs/sigmadsp.c')
-rw-r--r-- | sound/soc/codecs/sigmadsp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/sigmadsp.c b/sound/soc/codecs/sigmadsp.c index 34fdc402c1cc..d53680ac78e4 100644 --- a/sound/soc/codecs/sigmadsp.c +++ b/sound/soc/codecs/sigmadsp.c @@ -661,7 +661,8 @@ static void sigmadsp_activate_ctrl(struct sigmadsp *sigmadsp, struct snd_card *card = sigmadsp->component->card->snd_card; struct snd_kcontrol_volatile *vd; struct snd_ctl_elem_id id; - bool active, changed; + bool active; + bool changed = false; active = sigmadsp_samplerate_valid(ctrl->samplerates, samplerate_mask); |