From: Jiri Slaby Date: Thu, 4 Apr 2013 20:32:10 +0000 (+0200) Subject: ALSA: hda/generic - fix uninitialized variable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=868211db6df96ddae411fcd800502725beef8387;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Takashi Iwai --- 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)