pwc: precedence bug in pwc_init_controls()
Subsystems (2)
PATCH 1/1 pwc: precedence bug in pwc_init_controls()
'!' has higher precedence than '&' so we need parenthesis here.
Signed-off-by Dan Carpenter <[email protected]>
drivers/media/video/pwc/pwc-v4l.c +1 -1
@@ -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 */
Hi,
Thanks I've added your patch to my gspca/pwc tree and send an updated pull request to Mauro including your patch.
Regards,
Hans
Quoted 17 lines · Dan Carpenter
'!' has higher precedence than'&' so we need parenthesis here.
Signed-off-by Dan Carpenter<[email protected]>drivers/media/video/pwc/pwc-v4l.c +1
-1@@ -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 */