aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <[email protected]>2018-05-18 14:47:03 +0100
committerCK Hu <[email protected]>2018-06-28 00:27:36 +0800
commit06ede493a9d755185ba8a97225ce1352fa5c310c (patch)
treeb723e388a969184c2b91e2fe4c5c6b500d0dc74f
parente6ab087a224fd7bcf712db698fbade673cc9addd (diff)
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: Daniel Stone <[email protected]> Cc: Sean Paul <[email protected]> Cc: Thierry Reding <[email protected]> Cc: CK Hu <[email protected]> Cc: Philipp Zabel <[email protected]> Acked-by: Thierry Reding <[email protected]> Signed-off-by: CK Hu <[email protected]>
-rw-r--r--drivers/gpu/drm/mediatek/mtk_drm_plane.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.c b/drivers/gpu/drm/mediatek/mtk_drm_plane.c
index 2f4b0ffee598..149fc4372917 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_plane.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.c
@@ -95,11 +95,6 @@ static int mtk_plane_atomic_check(struct drm_plane *plane,
if (!fb)
return 0;
- if (!mtk_fb_get_gem_obj(fb)) {
- DRM_DEBUG_KMS("buffer is null\n");
- return -EFAULT;
- }
-
if (!state->crtc)
return 0;