From: Daniel Stone Date: Fri, 18 May 2018 13:47:03 +0000 (+0100) Subject: drm/mtk: Remove impossible internal error X-Git-Tag: v4.19~298^2~45^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c734f496770801f97ae1a59607634b972b002cdf;p=platform%2Fkernel%2Flinux-rpi3.git 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 Acked-by: Thierry Reding Cc: Sean Paul Cc: CK Hu Cc: Philipp Zabel Link: https://patchwork.freedesktop.org/patch/msgid/20180518134705.12533-1-daniels@collabora.com --- diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.c b/drivers/gpu/drm/mediatek/mtk_drm_plane.c index 2f4b0ff..149fc43 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;