Skip to content

Commit

Permalink
[media] pwc: precedence bug in pwc_init_controls()
Browse files Browse the repository at this point in the history
'!' has higher precedence than '&' so we need parenthesis here.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
error27 authored and Mauro Carvalho Chehab committed Sep 11, 2011
1 parent ddf2835 commit 4264a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/pwc/pwc-v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4264a8b

Please sign in to comment.