diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-04-04 22:32:10 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-04-05 07:19:55 +0200 |
commit | 868211db6df96ddae411fcd800502725beef8387 (patch) | |
tree | 67f780f8f24f9d7b200abc6da906c467a71dc4b4 /sound | |
parent | 8fc24426f15d967d585af7062b7be3c46bbce571 (diff) |
ALSA: hda/generic - fix uninitialized variable
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index 43c2ea53956..2dbe767be16 100644 --- a/sound/pci/hda/hda_generic.c +++ b/sound/pci/hda/hda_generic.c @@ -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) |