Messages in this thread | | | Date | Fri, 05 Aug 2011 12:52:36 +0200 | From | Takashi Iwai <> | Subject | Re: [PATCH] ALSA: hda - Fix a complile warning in patch_via.c |
| |
At Fri, 5 Aug 2011 18:51:29 +0800, stufever@gmail.com wrote: > > From: Wang Shaoyan <wangshaoyan.pt@taobao.com> > > sound/pci/hda/patch_via.c:2087: warning: 'dac' may be used uninitialized in this function > > Signed-off-by: Wang Shaoyan <wangshaoyan.pt@taobao.com>
Thanks, applied now.
Takashi
> --- > sound/pci/hda/patch_via.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c > index 84d8798..4ebfbd8 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]; > -- > 1.7.4.1 >
| |