drm/i915: Remove check for !crtc_state in intel_plane_atomic_calc_changes()
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 2 Jul 2016 14:36:06 +0000 (15:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 2 Jul 2016 18:20:17 +0000 (19:20 +0100)
commit841149909abb4cf9038ba0a12f3bec711f3ce09b
tree98e493a9c9c3854352c89b2bd722fba41064e193
parentf1fda7451f2924d2047bcc696250cb61799a52d9
drm/i915: Remove check for !crtc_state in intel_plane_atomic_calc_changes()

smatch spotted that:

drivers/gpu/drm/i915/intel_display.c:11986
intel_plane_atomic_calc_changes() warn: variable dereferenced before
check 'crtc_state' (see line 11972)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1467470166-31717-9-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/intel_display.c