summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2018-03-27 23:47:22 +0300
committerJani Nikula <jani.nikula@intel.com>2018-03-28 09:35:20 +0300
commitf4392860b4fe55d7d7cadaa64743c9b2466e4fd8 (patch)
tree51a7c50bac8ce6eff02a02e56794ac8fecc47d89 /include/drm
parent885a31cb6c752d5403adc6389894c27560fc6e6c (diff)
downloadlinux-f4392860b4fe55d7d7cadaa64743c9b2466e4fd8.tar.bz2
drm: make drm_core_check_feature() bool that it is
Bool is the more appropriate return type here, use it. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180327204722.31246-3-jani.nikula@intel.com
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drmP.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index b5d52a3d7d19..f5099c12c6a6 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -115,9 +115,9 @@ static inline bool drm_drv_uses_atomic_modeset(struct drm_device *dev)
#define DRM_SWITCH_POWER_CHANGING 2
#define DRM_SWITCH_POWER_DYNAMIC_OFF 3
-static inline int drm_core_check_feature(struct drm_device *dev, int feature)
+static inline bool drm_core_check_feature(struct drm_device *dev, int feature)
{
- return ((dev->driver->driver_features & feature) ? 1 : 0);
+ return dev->driver->driver_features & feature;
}
/* returns true if currently okay to sleep */