mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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>
This commit is contained in:
parent
9c7a083d94
commit
abaead6ac5
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue