]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Aug 2015 03:52:20 +0000 (20:52 -0700)
commit66832d90e275ca52f348d6599f4769f9a99aea1a
treeea8cafa74e18a91e300af1376616fcc7cb13be14
parentdcee583335047bcc1501e3b49d4537a8320022c6
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