[Sound-open-firmware] [PATCH] dw-dma: Add parenthesis around if statement logic
Liam Girdwood
liam.r.girdwood at linux.intel.com
Thu Dec 22 14:05:14 CET 2016
Make it less ambiguous.
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
src/drivers/dw-dma.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/drivers/dw-dma.c b/src/drivers/dw-dma.c
index ecd152d..9de766b 100644
--- a/src/drivers/dw-dma.c
+++ b/src/drivers/dw-dma.c
@@ -831,8 +831,8 @@ static void dw_dma_irq_handler(void *data)
mask = 0x1 << i;
/* end of a transfer */
- if (status_tfr & mask &&
- p->chan[i].cb_type & DMA_IRQ_TYPE_LLIST) {
+ if ((status_tfr & mask) &&
+ (p->chan[i].cb_type & DMA_IRQ_TYPE_LLIST)) {
if (p->chan[i].status == DMA_STATUS_PAUSING) {
p->chan[i].status = DMA_STATUS_PAUSED;
--
2.9.3
More information about the Sound-open-firmware
mailing list