summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
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;