|
@@ -863,10 +863,10 @@ static int drm_atomic_plane_check(struct drm_plane *plane,
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
/* either *both* CRTC and FB must be set, or neither */
|
|
/* either *both* CRTC and FB must be set, or neither */
|
|
- if (WARN_ON(state->crtc && !state->fb)) {
|
|
|
|
|
|
+ if (state->crtc && !state->fb) {
|
|
DRM_DEBUG_ATOMIC("CRTC set but no FB\n");
|
|
DRM_DEBUG_ATOMIC("CRTC set but no FB\n");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
- } else if (WARN_ON(state->fb && !state->crtc)) {
|
|
|
|
|
|
+ } else if (state->fb && !state->crtc) {
|
|
DRM_DEBUG_ATOMIC("FB set but no CRTC\n");
|
|
DRM_DEBUG_ATOMIC("FB set but no CRTC\n");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|