diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-07-09 05:55:28 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-07-09 05:55:28 -0400 |
commit | abaead6ac55dbda8b4bae40251d69dc3f0c49b1c (patch) | |
tree | 144875c4d4471b7d55ed289600df8c9871bd656a /sound/pci/hda | |
parent | 9c7a083d94656ad6d6f2e03ba90194f2cc5bced5 (diff) |
ALSA: hda - Fix a copmile warning
It's harmless but annyoing.
sound/pci/hda/patch_realtek.c: In function ‘alc_cap_getput_caller’:
sound/pci/hda/patch_realtek.c:2722:9: warning: ‘err’ may be used uninitialized in this function
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-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 7d492713c1c1..b48fb43b5448 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -2719,7 +2719,7 @@ static int alc_cap_getput_caller(struct snd_kcontrol *kcontrol, | |||
2719 | { | 2719 | { |
2720 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); | 2720 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); |
2721 | struct alc_spec *spec = codec->spec; | 2721 | struct alc_spec *spec = codec->spec; |
2722 | int i, err; | 2722 | int i, err = 0; |
2723 | 2723 | ||
2724 | mutex_lock(&codec->control_mutex); | 2724 | mutex_lock(&codec->control_mutex); |
2725 | if (check_adc_switch && spec->dual_adc_switch) { | 2725 | if (check_adc_switch && spec->dual_adc_switch) { |