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

Subject: media: saa7134: simplify if-if to if-else
Author:  Wan Jiabing <[email protected]>
Date:    Mon Apr 11 11:56:49 2022 +0100

use if and else instead of if(A) and if (!A).

Signed-off-by: Wan Jiabing <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/pci/saa7134/saa7134-video.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

---

diff --git a/drivers/media/pci/saa7134/saa7134-video.c 
b/drivers/media/pci/saa7134/saa7134-video.c
index 98c258a1cd01..4d8974c9fcc9 100644
--- a/drivers/media/pci/saa7134/saa7134-video.c
+++ b/drivers/media/pci/saa7134/saa7134-video.c
@@ -1832,8 +1832,7 @@ static int saa7134_overlay(struct file *file, void *priv, 
unsigned int on)
                spin_lock_irqsave(&dev->slock, flags);
                start_preview(dev);
                spin_unlock_irqrestore(&dev->slock, flags);
-       }
-       if (!on) {
+       } else {
                if (priv != dev->overlay_owner)
                        return -EINVAL;
                spin_lock_irqsave(&dev->slock, flags);

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

Reply via email to