summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-07-23 15:53:03 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-11 09:33:35 -0300
commit4264a8b6388f5ba16a5c362857cb8bda0b14167f (patch)
treeb627ff198c7da1e1176103c231dcf5fab6b856fb /drivers/media
parentddf28352b80c86754a6424e3a61e8bdf9213b3c7 (diff)
downloadtalos-op-linux-4264a8b6388f5ba16a5c362857cb8bda0b14167f.tar.gz
talos-op-linux-4264a8b6388f5ba16a5c362857cb8bda0b14167f.zip
[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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/pwc/pwc-v4l.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pwc/pwc-v4l.c b/drivers/media/video/pwc/pwc-v4l.c
index e9a0e94b9995..8c70e64444e7 100644
--- a/drivers/media/video/pwc/pwc-v4l.c
+++ b/drivers/media/video/pwc/pwc-v4l.c
@@ -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 */
OpenPOWER on IntegriCloud