Commit 81c0a78b authored by Wang Shaoyan's avatar Wang Shaoyan Committed by Takashi Iwai

ALSA: hda - Fix a complile warning in patch_via.c

  sound/pci/hda/patch_via.c:2087: warning: 'dac' may be used uninitialized in this function
Signed-off-by: default avatarWang Shaoyan <wangshaoyan.pt@taobao.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 3d56c8e6
...@@ -2084,7 +2084,7 @@ static int via_auto_create_speaker_ctls(struct hda_codec *codec) ...@@ -2084,7 +2084,7 @@ static int via_auto_create_speaker_ctls(struct hda_codec *codec)
struct via_spec *spec = codec->spec; struct via_spec *spec = codec->spec;
struct nid_path *path; struct nid_path *path;
bool check_dac; bool check_dac;
hda_nid_t pin, dac; hda_nid_t pin, dac = 0;
int err; int err;
pin = spec->autocfg.speaker_pins[0]; pin = spec->autocfg.speaker_pins[0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment