From: Takashi Iwai Date: Tue, 22 Jun 2010 09:12:32 +0000 (+0200) Subject: ALSA: hda - Fix uninitialized variable X-Git-Tag: v2.6.35-rc5~2^2~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=2f44f84725dec354228fddc129e83e251060361d;p=~emulex%2Finfiniband.git ALSA: hda - Fix uninitialized variable Fix the following compile warning. kctl should be NULL-initialized. sound/pci/hda/patch_realtek.c: In function ‘alc_build_controls’: sound/pci/hda/patch_realtek.c:2550:23: warning: ‘kctl’ may be used uninitialized in this function Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index f1ce7d7f5aa..2bf678917e8 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -2547,7 +2547,7 @@ static struct snd_kcontrol_new alc_beep_mixer[] = { static int alc_build_controls(struct hda_codec *codec) { struct alc_spec *spec = codec->spec; - struct snd_kcontrol *kctl; + struct snd_kcontrol *kctl = NULL; struct snd_kcontrol_new *knew; int i, j, err; unsigned int u;