diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-06-22 05:12:32 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-06-22 05:12:32 -0400 |
commit | 2f44f84725dec354228fddc129e83e251060361d (patch) | |
tree | bb0906b80ec8796f857be8ee779e7208a011932f /sound | |
parent | b8f171e7e7ed5c9b77324bcc6bb580ddcc84da49 (diff) |
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 <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index f1ce7d7f5aa3..2bf678917e87 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[] = { | |||
2547 | static int alc_build_controls(struct hda_codec *codec) | 2547 | static int alc_build_controls(struct hda_codec *codec) |
2548 | { | 2548 | { |
2549 | struct alc_spec *spec = codec->spec; | 2549 | struct alc_spec *spec = codec->spec; |
2550 | struct snd_kcontrol *kctl; | 2550 | struct snd_kcontrol *kctl = NULL; |
2551 | struct snd_kcontrol_new *knew; | 2551 | struct snd_kcontrol_new *knew; |
2552 | int i, j, err; | 2552 | int i, j, err; |
2553 | unsigned int u; | 2553 | unsigned int u; |