ALSA: ctxfi: Fix the incorrect check of dma_set_mask() call
authorTakashi Iwai <tiwai@suse.de>
Mon, 20 Mar 2017 09:08:19 +0000 (10:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Jun 2017 22:47:06 +0000 (00:47 +0200)
commita11b00f876d2698ccff00b65cbe87d20f9b14a57
treec848a516f40b5f193466168f25e4e5f9eac1fbe8
parent4b0ca39a00e4367ce9c9941b84c248eb6c64abd9
ALSA: ctxfi: Fix the incorrect check of dma_set_mask() call

commit f363a06642f28caaa78cb6446bbad90c73fe183c upstream.

In the commit [15c75b09f8d1: ALSA: ctxfi: Fallback DMA mask to 32bit],
I forgot to put "!" at dam_set_mask() call check in cthw20k1.c (while
cthw20k2.c is OK).  This patch fixes that obvious bug.

(As a side note: although the original commit was completely wrong,
 it's still working for most of machines, as it sets to 32bit DMA mask
 in the end.  So the bug severity is low.)

Fixes: 15c75b09f8d1 ("ALSA: ctxfi: Fallback DMA mask to 32bit")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
sound/pci/ctxfi/cthw20k1.c