Commit 06ede493 authored by Daniel Stone's avatar Daniel Stone Committed by CK Hu

drm/mtk: Remove impossible internal error

We cannot create a framebuffer with no objects, so there's no point
testing for it.

v2: Remove the error entirely. (Sean, CK, Thierry)
Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: Thierry Reding <treding@nvidia.com>
Cc: CK Hu <ck.hu@mediatek.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarCK Hu <ck.hu@mediatek.com>
parent e6ab087a
...@@ -95,11 +95,6 @@ static int mtk_plane_atomic_check(struct drm_plane *plane, ...@@ -95,11 +95,6 @@ static int mtk_plane_atomic_check(struct drm_plane *plane,
if (!fb) if (!fb)
return 0; return 0;
if (!mtk_fb_get_gem_obj(fb)) {
DRM_DEBUG_KMS("buffer is null\n");
return -EFAULT;
}
if (!state->crtc) if (!state->crtc)
return 0; return 0;
......
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