From: Wang Shaoyan Date: Fri, 5 Aug 2011 10:51:29 +0000 (+0800) Subject: ALSA: hda - Fix a complile warning in patch_via.c X-Git-Tag: MMI-PSA29.97-13-9~18268^2~45 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=81c0a78b644f0e265a01d5a5f5ab397b791bad08;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Wang Shaoyan Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 84d8798bf33a..4ebfbd874c9a 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c @@ -2084,7 +2084,7 @@ static int via_auto_create_speaker_ctls(struct hda_codec *codec) struct via_spec *spec = codec->spec; struct nid_path *path; bool check_dac; - hda_nid_t pin, dac; + hda_nid_t pin, dac = 0; int err; pin = spec->autocfg.speaker_pins[0];