]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - fix cs4210_spdif_automute()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 25 Jul 2015 00:03:38 +0000 (03:03 +0300)
committerTakashi Iwai <tiwai@suse.de>
Sat, 25 Jul 2015 06:19:04 +0000 (08:19 +0200)
commit96848d98ab4daae45357f6892b4d3f17a3953eae
tree12f2c76fdf1f820aa5be14dfae826d8867dbafbe
parent0ff7368974fce6d6bc249cfb2ccd37c76551541c
ALSA: hda - fix cs4210_spdif_automute()

Smatch complains that we have nested checks for "spdif_present".  It
turns out the current behavior isn't correct, we should remove the first
check and keep the second.

Fixes: a0209075a4c0 ('ALSA: hda - Use generic parser for Cirrus codec driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_cirrus.c