dw_dma: fix operator precedence warning

Fix cppcheck warning

[src/drivers/dw/dma.c:292]: (style) Clarify calculation precedence for
'&' and '?'

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
This commit is contained in:
Pierre-Louis Bossart 2020-02-20 15:40:57 -06:00 committed by Liam Girdwood
parent 73dce1cef5
commit 675c984b32
1 changed files with 2 additions and 2 deletions

View File

@ -288,8 +288,8 @@ static int dw_dma_start(struct dma_chan_data *channel)
#if CONFIG_HW_LLI
/* LLP mode - write LLP pointer unless in scatter mode */
dma_reg_write(dma, DW_LLP(channel->index), lli->ctrl_lo &
(DW_CTLL_LLP_D_EN | DW_CTLL_LLP_S_EN) ?
dma_reg_write(dma, DW_LLP(channel->index),
(lli->ctrl_lo & (DW_CTLL_LLP_D_EN | DW_CTLL_LLP_S_EN)) ?
(uint32_t)lli : 0);
#endif
/* channel needs to start from scratch, so write SAR and DAR */