drm/i915: Simplify _STATE_ debug macros
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 18 Dec 2015 12:27:26 +0000 (14:27 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Dec 2015 09:02:57 +0000 (10:02 +0100)
commit32753cb863af32eadc63330a6b9eaa481f83d341
tree83edd76526153103d3e8e09eeb2042310d88528f
parent4601b933c9dcb6802e3289d62bcdb52ea32425d6
drm/i915: Simplify _STATE_ debug macros

Take advantage of WARN return value to simplify the flow.

Cc: Rob Clark <robdclark@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450441647-23924-2-git-send-email-joonas.lahtinen@linux.intel.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h