diff options
author | Wan Jiabing <wanjiabing@vivo.com> | 2022-04-11 12:56:49 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-04-24 09:51:10 +0200 |
commit | 802239d55d0a76ac2718ed322ee3f2e41c20f6a6 (patch) | |
tree | ef2ca17213115dc6af3ab1140f811423ff7e2113 /drivers/media/pci/saa7134 | |
parent | media: imx-jpeg: don't change byteused of queued buffer (diff) | |
download | linux-802239d55d0a76ac2718ed322ee3f2e41c20f6a6.tar.xz linux-802239d55d0a76ac2718ed322ee3f2e41c20f6a6.zip |
media: saa7134: simplify if-if to if-else
use if and else instead of if(A) and if (!A).
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/pci/saa7134')
-rw-r--r-- | drivers/media/pci/saa7134/saa7134-video.c | 3 |
1 files changed, 1 insertions, 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); |