ALSA: hda - fix cs4210_spdif_automute()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 25 Jul 2015 00:03:38 +0000 (03:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Aug 2015 03:51:40 +0000 (20:51 -0700)
commit5d6e58957cb833fe1847bd8370dac9b3939546b9
treebbe2b349ec95d33f1641d7c0744aa0c06c4666f8
parent621468a3d79c2ef11ef2ec2eeb1038b8c4373b7d
ALSA: hda - fix cs4210_spdif_automute()

commit 44008f0896ae205b02b0882dbf807f0de149efc4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_cirrus.c