summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-07-09 11:55:28 +0200
committerTakashi Iwai <tiwai@suse.de>2011-07-09 11:55:28 +0200
commitabaead6ac55dbda8b4bae40251d69dc3f0c49b1c (patch)
tree144875c4d4471b7d55ed289600df8c9871bd656a /sound
parentALSA: hda - Change all ADCs for dual-adc switching mode for Realtek (diff)
downloadlinux-abaead6ac55dbda8b4bae40251d69dc3f0c49b1c.tar.xz
linux-abaead6ac55dbda8b4bae40251d69dc3f0c49b1c.zip
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')
-rw-r--r--sound/pci/hda/patch_realtek.c2
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,
{
struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
struct alc_spec *spec = codec->spec;
- int i, err;
+ int i, err = 0;
mutex_lock(&codec->control_mutex);
if (check_adc_switch && spec->dual_adc_switch) {