Skip to content

Commit 2104793

Browse files
Hans Verkuilmchehab
authored andcommitted
media: pci: tw686x: no need to check 'next'
If 'done' is not NULL, then next can never be NULL, so just drop the 'next' check. This fixes this smatch warning: drivers/media/pci/tw686x/tw686x-audio.c:62 tw686x_audio_irq() warn: can 'next' even be NULL? Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
1 parent 2192fa9 commit 2104793

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/pci/tw686x/tw686x-audio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void tw686x_audio_irq(struct tw686x_dev *dev, unsigned long requests,
5959
}
6060
spin_unlock_irqrestore(&ac->lock, flags);
6161

62-
if (!done || !next)
62+
if (!done)
6363
continue;
6464
/*
6565
* Checking for a non-nil dma_desc[pb]->virt buffer is

0 commit comments

Comments
 (0)