Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 868211db authored by Jiri Slaby's avatar Jiri Slaby Committed by Takashi Iwai
Browse files

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: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8fc24426
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)