Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: ti: omap-dma: Remove variable override in omap_dma_tx_status()

There is no need to fetch local omap_desc since the desc we have is the
correct one already when we need to check the channel status.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20190730132029.2971-1-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Peter Ujfalusi and committed by
Vinod Koul
9fa2df6e 7a09c09c

-1
-1
drivers/dma/ti/omap-dma.c
··· 860 860 * accordingly and mark it as completed 861 861 */ 862 862 if (!(ccr & CCR_ENABLE)) { 863 - struct omap_desc *d = c->desc; 864 863 ret = DMA_COMPLETE; 865 864 omap_dma_start_desc(c); 866 865 vchan_cookie_complete(&d->vd);