diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2019-07-30 16:20:29 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-09-04 10:11:17 +0530 |
commit | 9fa2df6eafa024e9f10ff60518ab62abe1c6cfb6 (patch) | |
tree | 3f735727438a9e272f3d998616a2352dc3403bf6 /drivers/dma/ti/omap-dma.c | |
parent | 7a09c09c300761f2a0f34cfecebe327883de5864 (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>
Diffstat (limited to 'drivers/dma/ti/omap-dma.c')
-rw-r--r-- | drivers/dma/ti/omap-dma.c | 1 |
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: * accordingly and mark it as completed */ if (!(ccr & CCR_ENABLE)) { - struct omap_desc *d = c->desc; ret = DMA_COMPLETE; omap_dma_start_desc(c); vchan_cookie_complete(&d->vd); |