forked from Minki/linux
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>
This commit is contained in:
parent
8fc24426f1
commit
868211db6d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user