Skip to contentSkip to conversation

dmaengine: ti: omap-dma: Remove variable override in omap_dma_tx_status()

PATCH Applied Peter Ujfalusi 2 participants 2 messages Jul 30, 2019 – Sep 4, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/dma/ti/omap-dma.c | 1 -
 1 file changed, 1 deletion(-)
drivers/dma/ti/omap-dma.c +0 -1
index 3b57b68df896..9f359ec3386d 100644
@@ -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);
Signature · 4 lines
Peter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
maintainer Applied
#1 lore raw
Quoted 2 lines · Peter Ujfalusi

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.

Applied, thanks

Signature · 1 line
~Vinod