Commit d98123a7 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

ASoC: sigmadsp: uninitialized variable in sigmadsp_activate_ctrl()

The "changed" variable should be set to false at the start.

Fixes: a35daac7 ('ASoC: sigmadsp: Add support for fw v2')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
parent 141f87d4
......@@ -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);
......
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