[media] pwc: precedence bug in pwc_init_controls()
'!' has higher precedence than '&' so we need parenthesis here. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
ddf28352b8
commit
4264a8b638
|
@ -338,7 +338,7 @@ int pwc_init_controls(struct pwc_device *pdev)
|
|||
if (pdev->restore_factory)
|
||||
pdev->restore_factory->flags = V4L2_CTRL_FLAG_UPDATE;
|
||||
|
||||
if (!pdev->features & FEATURE_MOTOR_PANTILT)
|
||||
if (!(pdev->features & FEATURE_MOTOR_PANTILT))
|
||||
return hdl->error;
|
||||
|
||||
/* Motor pan / tilt / reset */
|
||||
|
|
Loading…
Reference in New Issue