|
@@ -76,11 +76,7 @@ intel_plane_duplicate_state(struct drm_plane *plane)
|
|
|
struct drm_plane_state *state;
|
|
|
struct intel_plane_state *intel_state;
|
|
|
|
|
|
- if (WARN_ON(!plane->state))
|
|
|
- intel_state = intel_create_plane_state(plane);
|
|
|
- else
|
|
|
- intel_state = kmemdup(plane->state, sizeof(*intel_state),
|
|
|
- GFP_KERNEL);
|
|
|
+ intel_state = kmemdup(plane->state, sizeof(*intel_state), GFP_KERNEL);
|
|
|
|
|
|
if (!intel_state)
|
|
|
return NULL;
|