From: Peter Ujfalusi Date: Tue, 30 Jul 2019 13:20:29 +0000 (+0300) Subject: dmaengine: ti: omap-dma: Remove variable override in omap_dma_tx_status() X-Git-Tag: v5.4-rc1~143^2~9 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=9fa2df6eafa024e9f10ff60518ab62abe1c6cfb6;p=linux.git 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 Link: https://lore.kernel.org/r/20190730132029.2971-1-peter.ujfalusi@ti.com Signed-off-by: Vinod Koul --- 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 @@ static enum dma_status omap_dma_tx_status(struct dma_chan *chan, * 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);