Skip to content

Commit

Permalink
ALSA: hda - Fix a copmile warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Jul 9, 2011
1 parent 9c7a083 commit abaead6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit abaead6

Please sign in to comment.