Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a08acaf2 authored by Daniel Vetter's avatar Daniel Vetter
Browse files

drm/i915: Use symbolic names for booleans in i915_semaphore_is_enabled



Noticed while reviewing a patch and couldn't resist the OCD.

Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 52ed2325
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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)
@@ -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)