]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: uninitialized variable fix
authorFrederik Deweerdt <frederik.deweerdt@xprog.eu>
Fri, 5 Mar 2010 15:34:31 +0000 (16:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 5 Mar 2010 15:40:26 +0000 (16:40 +0100)
commit83fae1ce17d55cbf9853ca0446b561adc6d5dbbb
tree1940a0421c69ddf66d311975f03700b6bd276ef7
parent3b489cffbea1292f64230fedac68968c0d71829a
ALSA: hda: uninitialized variable fix

Commit 6856b0d7e944790f8c449c2e0339b897695470ef introduced the following
uninitialized warning:

sound/pci/hda/patch_realtek.c: In function 'set_capture_mixer':
sound/pci/hda/patch_realtek.c:4928: warning: 'pin' is used uninitialized in this function
sound/pci/hda/patch_realtek.c:4918: note: 'pin' was declared here

It appears indeed that 'pin' needs to be initialized to 0.

Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c