diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2019-07-30 15:20:29 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-09-04 06:41:17 +0200 |
commit | 9fa2df6eafa024e9f10ff60518ab62abe1c6cfb6 (patch) | |
tree | 3f735727438a9e272f3d998616a2352dc3403bf6 | |
parent | dmaengine: ti: omap-dma: Remove 'Assignment in if condition' (diff) | |
download | linux-9fa2df6eafa024e9f10ff60518ab62abe1c6cfb6.tar.xz linux-9fa2df6eafa024e9f10ff60518ab62abe1c6cfb6.zip |
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.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); |