Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4264a8b6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

[media] pwc: precedence bug in pwc_init_controls()



'!' has higher precedence than '&' so we need parenthesis here.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ddf28352
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */