drm/i915: Simplify control flow in intel_atomic_check a bit.
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 9 May 2016 07:31:25 +0000 (09:31 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 May 2016 20:48:45 +0000 (22:48 +0200)
commitaf4a879e0cb29b2cf35ff7559d32304783012534
tree603abc00f6a1dd725714ee44023718872644b7de
parent1ecc1c6cb7d3549d8854b0d6ac5a86a622ca6fa3
drm/i915: Simplify control flow in intel_atomic_check a bit.

- Unconditionally add plane states. Core helpers would have done this
  in drm_atomic_helper_check_modeset, doing it once more won't cause
  harm and is less fragile.

- Simplify the continue logic when disabling a pipe.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1462779085-2458-1-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/i915/intel_display.c