ASoC: sigmadsp: uninitialized variable in sigmadsp_activate_ctrl()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Nov 2014 22:35:16 +0000 (01:35 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 27 Nov 2014 10:59:33 +0000 (10:59 +0000)
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>
sound/soc/codecs/sigmadsp.c

index 34fdc402c1cc292b87f51e83ca1434a313cebd76..d53680ac78e42d0bb0979afcbea8e77046d181b9 100644 (file)
@@ -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);