Commit 2f44f847 authored by Takashi Iwai's avatar Takashi Iwai

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: default avatarTakashi Iwai <tiwai@suse.de>
parent b8f171e7
...@@ -2547,7 +2547,7 @@ static struct snd_kcontrol_new alc_beep_mixer[] = { ...@@ -2547,7 +2547,7 @@ static struct snd_kcontrol_new alc_beep_mixer[] = {
static int alc_build_controls(struct hda_codec *codec) static int alc_build_controls(struct hda_codec *codec)
{ {
struct alc_spec *spec = codec->spec; struct alc_spec *spec = codec->spec;
struct snd_kcontrol *kctl; struct snd_kcontrol *kctl = NULL;
struct snd_kcontrol_new *knew; struct snd_kcontrol_new *knew;
int i, j, err; int i, j, err;
unsigned int u; unsigned int u;
......
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