dw-dma: Add parenthesis around if statement logic

Make it less ambiguous.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2016-12-21 19:50:24 +00:00
parent 53a996454e
commit ae0a203d31
1 changed files with 2 additions and 2 deletions

View File

@ -831,8 +831,8 @@ static void dw_dma_irq_handler(void *data)
mask = 0x1 << i; mask = 0x1 << i;
/* end of a transfer */ /* end of a transfer */
if (status_tfr & mask && if ((status_tfr & mask) &&
p->chan[i].cb_type & DMA_IRQ_TYPE_LLIST) { (p->chan[i].cb_type & DMA_IRQ_TYPE_LLIST)) {
if (p->chan[i].status == DMA_STATUS_PAUSING) { if (p->chan[i].status == DMA_STATUS_PAUSING) {
p->chan[i].status = DMA_STATUS_PAUSED; p->chan[i].status = DMA_STATUS_PAUSED;