Skip to content

Commit

Permalink
drm/i915: Use symbolic names for booleans in i915_semaphore_is_enabled
Browse files Browse the repository at this point in the history
Noticed while reviewing a patch and couldn't resist the OCD.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Daniel Vetter committed Dec 17, 2013
1 parent 52ed232 commit a08acaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/i915/i915_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,12 @@ void intel_detect_pch(struct drm_device *dev)
bool i915_semaphore_is_enabled(struct drm_device *dev)
{
if (INTEL_INFO(dev)->gen < 6)
return 0;
return false;

/* Until we get further testing... */
if (IS_GEN8(dev)) {
WARN_ON(!i915_preliminary_hw_support);
return 0;
return false;
}

if (i915_semaphores >= 0)
Expand All @@ -497,7 +497,7 @@ bool i915_semaphore_is_enabled(struct drm_device *dev)
return false;
#endif

return 1;
return true;
}

static int i915_drm_freeze(struct drm_device *dev)
Expand Down

0 comments on commit a08acaf

Please sign in to comment.