From: Jiri Slaby Date: Thu, 4 Apr 2013 20:32:10 +0000 (+0200) Subject: ALSA: hda/generic - fix uninitialized variable X-Git-Tag: v3.9-rc6~16^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=868211db6df96ddae411fcd800502725beef8387;p=platform%2Fkernel%2Flinux-exynos.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 43c2ea5..2dbe767 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)