Skip to content

Commit d8344fa

Browse files
committed
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 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>
1 parent 55f8b25 commit d8344fa

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/dma/sf-pdma/sf-pdma.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ static void sf_pdma_free_desc(struct virt_dma_desc *vdesc)
284284
static void sf_pdma_donebh_tasklet(unsigned long arg)
285285
{
286286
struct sf_pdma_chan *chan = (struct sf_pdma_chan *)arg;
287-
struct sf_pdma_desc *desc = chan->desc;
288287
unsigned long flags;
289288

290289
spin_lock_irqsave(&chan->lock, flags);

0 commit comments

Comments
 (0)