Skip to content

Commit

Permalink
ASoC: sigmadsp: uninitialized variable in sigmadsp_activate_ctrl()
Browse files Browse the repository at this point in the history
The "changed" variable should be set to false at the start.

Fixes: a35daac ('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>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Nov 27, 2014
1 parent 141f87d commit d98123a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/codecs/sigmadsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d98123a

Please sign in to comment.