summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2019-07-30 09:20:29 -0400
committerVinod Koul <vkoul@kernel.org>2019-09-04 00:41:17 -0400
commit9fa2df6eafa024e9f10ff60518ab62abe1c6cfb6 (patch)
tree3f735727438a9e272f3d998616a2352dc3403bf6
parent7a09c09c300761f2a0f34cfecebe327883de5864 (diff)
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>
-rw-r--r--drivers/dma/ti/omap-dma.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/ti/omap-dma.c b/drivers/dma/ti/omap-dma.c
index 23da592594fa..7b5d485289ab 100644
--- a/drivers/dma/ti/omap-dma.c
+++ b/drivers/dma/ti/omap-dma.c
@@ -860,7 +860,6 @@ out:
860 * accordingly and mark it as completed 860 * accordingly and mark it as completed
861 */ 861 */
862 if (!(ccr & CCR_ENABLE)) { 862 if (!(ccr & CCR_ENABLE)) {
863 struct omap_desc *d = c->desc;
864 ret = DMA_COMPLETE; 863 ret = DMA_COMPLETE;
865 omap_dma_start_desc(c); 864 omap_dma_start_desc(c);
866 vchan_cookie_complete(&d->vd); 865 vchan_cookie_complete(&d->vd);