]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dmaengine: ti: omap-dma: Remove variable override in omap_dma_tx_status()
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 30 Jul 2019 13:20:29 +0000 (16:20 +0300)
committerVinod Koul <vkoul@kernel.org>
Wed, 4 Sep 2019 04:41:17 +0000 (10:11 +0530)
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>
drivers/dma/ti/omap-dma.c

index 23da592594fa24dee9c147feb31c5733ba3e375b..7b5d485289aba4466b7f4c7a20fdd5072bb6b025 100644 (file)
@@ -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);