提交 a443e988 编写于 作者: T Tudor Ambarus 提交者: Vinod Koul

dmaengine: at_xdmac: Drop always true check

The code in cause is already in the else case of
'if (at_xdmac_chan_is_cyclic(atchan))', drop the redundant check.
Signed-off-by: NTudor Ambarus <tudor.ambarus@microchip.com>
Acked-by: NLudovic Desroches <ludovic.desroches@microchip.com>
Link: https://lore.kernel.org/r/20200123140237.125799-7-tudor.ambarus@microchip.comSigned-off-by: NVinod Koul <vkoul@kernel.org>
上级 078a6506
...@@ -1656,11 +1656,9 @@ static void at_xdmac_tasklet(unsigned long data) ...@@ -1656,11 +1656,9 @@ static void at_xdmac_tasklet(unsigned long data)
at_xdmac_remove_xfer(atchan, desc); at_xdmac_remove_xfer(atchan, desc);
spin_unlock(&atchan->lock); spin_unlock(&atchan->lock);
if (!at_xdmac_chan_is_cyclic(atchan)) {
dma_cookie_complete(txd); dma_cookie_complete(txd);
if (txd->flags & DMA_PREP_INTERRUPT) if (txd->flags & DMA_PREP_INTERRUPT)
dmaengine_desc_get_callback_invoke(txd, NULL); dmaengine_desc_get_callback_invoke(txd, NULL);
}
dma_run_dependencies(txd); dma_run_dependencies(txd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册