summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2013-04-04 22:32:10 +0200
committerTakashi Iwai <tiwai@suse.de>2013-04-05 07:19:55 +0200
commit868211db6df96ddae411fcd800502725beef8387 (patch)
tree67f780f8f24f9d7b200abc6da906c467a71dc4b4
parent8fc24426f15d967d585af7062b7be3c46bbce571 (diff)
downloadlinux-868211db6df96ddae411fcd800502725beef8387.tar.bz2
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>
-rw-r--r--sound/pci/hda/hda_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index 43c2ea539561..2dbe767be16b 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)