Skip to contentSkip to conversation

dmaengine: sf-pdma: remove unused 'desc'

PATCH Applied Vinod Koul 1 participant 2 messages Sep 14, 2020 – Sep 18, 2020

Subsystems (2)
lore
Share & tools
lore

Vinod Koul

author maintainer
#0 lore raw

PATCH 1/1 dmaengine: sf-pdma: remove unused 'desc'

'desc' variable is now defined but not used in sf_pdma_donebh_tasklet(), causing this warning:

drivers/dma/sf-pdma/sf-pdma.c: In function 'sf_pdma_donebh_tasklet':
drivers/dma/sf-pdma/sf-pdma.c:287:23: warning: unused variable 'desc' [-Wunused-variable]

Remove this unused variable

---
 drivers/dma/sf-pdma/sf-pdma.c | 1 -
 1 file changed, 1 deletion(-)
drivers/dma/sf-pdma/sf-pdma.c +0 -1
index 754994087e5f..1e66c6990d81 100644
@@ -284,7 +284,6 @@ static void sf_pdma_free_desc(struct virt_dma_desc *vdesc)
 static void sf_pdma_donebh_tasklet(unsigned long arg)
 {
 	struct sf_pdma_chan *chan = (struct sf_pdma_chan *)arg;
-	struct sf_pdma_desc *desc = chan->desc;
 	unsigned long flags;
 
 	spin_lock_irqsave(&chan->lock, flags);
Signature · 1 line
2.26.2
author maintainer Applied
#1 lore raw
Quoted 7 lines · Vinod Koul

'desc' variable is now defined but not used in sf_pdma_donebh_tasklet(), causing this warning:

drivers/dma/sf-pdma/sf-pdma.c: In function 'sf_pdma_donebh_tasklet':
drivers/dma/sf-pdma/sf-pdma.c:287:23: warning: unused variable 'desc' [-Wunused-variable]

Remove this unused variable

Applied, thanks

Signature · 1 line
~Vinod