projects/linux·commit 868211db

ALSA: hda/generic - fix uninitialized variable

868211db · Jiri Slaby <[email protected]> · 2013-04-04 22:32:10 +02:00

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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Commit
868211db6df96ddae411fcd800502725beef8387
Parents
8fc24426

Changes

1 files changed · +1 −1

FileStatusAddDelContent
sound/pci/hda/hda_generic.cmodified+1−1View file

sound/pci/hda/hda_generic.c

View file
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)