This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: pci: tw686x: no need to check 'next'
Author:  Hans Verkuil <[email protected]>
Date:    Wed May 24 13:11:49 2023 +0100

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 <[email protected]>
Cc: Ezequiel Garcia <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/pci/tw686x/tw686x-audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

diff --git a/drivers/media/pci/tw686x/tw686x-audio.c 
b/drivers/media/pci/tw686x/tw686x-audio.c
index 74cba1368cfa..1ae3845b6743 100644
--- a/drivers/media/pci/tw686x/tw686x-audio.c
+++ b/drivers/media/pci/tw686x/tw686x-audio.c
@@ -59,7 +59,7 @@ void tw686x_audio_irq(struct tw686x_dev *dev, unsigned long 
requests,
                }
                spin_unlock_irqrestore(&ac->lock, flags);
 
-               if (!done || !next)
+               if (!done)
                        continue;
                /*
                 * Checking for a non-nil dma_desc[pb]->virt buffer is

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to