Commit bca8013e authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Daniel Vetter

drm/i915: Do not handle a null plane state.

With the conversion to atomic this cannot happen any more.
Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 8e0e9cea
...@@ -76,11 +76,7 @@ intel_plane_duplicate_state(struct drm_plane *plane) ...@@ -76,11 +76,7 @@ intel_plane_duplicate_state(struct drm_plane *plane)
struct drm_plane_state *state; struct drm_plane_state *state;
struct intel_plane_state *intel_state; struct intel_plane_state *intel_state;
if (WARN_ON(!plane->state)) intel_state = kmemdup(plane->state, sizeof(*intel_state), GFP_KERNEL);
intel_state = intel_create_plane_state(plane);
else
intel_state = kmemdup(plane->state, sizeof(*intel_state),
GFP_KERNEL);
if (!intel_state) if (!intel_state)
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment