dmaengine: sf-pdma: remove unused 'desc'
authorVinod Koul <vkoul@kernel.org>
Mon, 14 Sep 2020 05:53:02 +0000 (11:23 +0530)
committerVinod Koul <vkoul@kernel.org>
Fri, 18 Sep 2020 07:00:53 +0000 (12:30 +0530)
'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

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/20200914055302.22962-1-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sf-pdma/sf-pdma.c

index 7549940..1e66c69 100644 (file)
@@ -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);