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>
This commit is contained in:
parent
2394eaeebd
commit
802239d55d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue