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)
commit44008f0896ae205b02b0882dbf807f0de149efc4
tree12f2c76fdf1f820aa5be14dfae826d8867dbafbe
parent43cbf02e7ad51007af38f39c5b2abdc7a5d7f5aa
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: 1077a024812d ('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