summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2010-11-09 17:59:31 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2010-11-09 17:59:31 +0000
commitd9c81e2df9aa71ae8275eb5b24a81cc962c12d8b (patch)
tree2c9efe7e7245673a1f61a6d46ffe2ab93e51e7c2 /sys/dev
parent2c74116ad0bc80825f06ca53f2b27fdf244b8d49 (diff)
correct some bit tests spotted by -Wparentheses in newer gcc.
ok oga@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/drm_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c
index eb706e7301f..8a2a9d26bab 100644
--- a/sys/dev/pci/drm/drm_drv.c
+++ b/sys/dev/pci/drm/drm_drv.c
@@ -1441,7 +1441,7 @@ drm_gem_flink_ioctl(struct drm_device *dev, void *data,
struct drm_gem_flink *args = data;
struct drm_obj *obj;
- if (!dev->driver->flags & DRIVER_GEM)
+ if (!(dev->driver->flags & DRIVER_GEM))
return (ENODEV);
obj = drm_gem_object_lookup(dev, file_priv, args->handle);
@@ -1476,7 +1476,7 @@ drm_gem_open_ioctl(struct drm_device *dev, void *data,
struct drm_obj *obj, search;
int ret, handle;
- if (!dev->driver->flags & DRIVER_GEM)
+ if (!(dev->driver->flags & DRIVER_GEM))
return (ENODEV);
search.name = args->name;