]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: ti: omap-dma: Readability cleanup in omap_dma_tx_status()
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 16 Jul 2019 08:24:58 +0000 (11:24 +0300)
committerVinod Koul <vkoul@kernel.org>
Mon, 29 Jul 2019 06:35:01 +0000 (12:05 +0530)
commit7e8f3e795af8d6ea32a56cc4f5e586f3c6e15fa3
tree005b21c748f24b640945ba1fffed918f5d33cc47
parent662266ba1d6df1b1a55a01f1b2872d9218f00e49
dmaengine: ti: omap-dma: Readability cleanup in omap_dma_tx_status()

The tx_status is most likely going to be asked for the current transfer, so
check that first then try to fall back to lookup of non started transfers.

In this way the code is a bit more readable and in most cases we will avoid
to run vchan_find_desc() all the time.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20190716082459.1222-2-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/omap-dma.c