Skip to content

Commit

Permalink
ALSA: hda/generic - fix uninitialized variable
Browse files Browse the repository at this point in the history
changed is not initialized in path_power_down_sync, but it is expected
to be false in case no change happened in the loop. So set it to
false.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Jiri Slaby authored and Takashi Iwai committed Apr 5, 2013
1 parent 8fc2442 commit 868211d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ EXPORT_SYMBOL_HDA(snd_hda_activate_path);
static void path_power_down_sync(struct hda_codec *codec, struct nid_path *path)
{
struct hda_gen_spec *spec = codec->spec;
bool changed;
bool changed = false;
int i;

if (!spec->power_down_unused || path->active)
Expand Down

0 comments on commit 868211d

Please sign in to comment.