diff options
author | Daniel Stone <daniels@collabora.com> | 2018-05-18 16:47:03 +0300 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2018-05-18 17:56:16 +0300 |
commit | c734f496770801f97ae1a59607634b972b002cdf (patch) | |
tree | 513c47cef769e41794ba9d16390c2d7371071f95 /drivers/gpu/drm/mediatek/mtk_drm_plane.c | |
parent | 080205096579a07fa1b18fcd28ff4d41c3c6e4d7 (diff) | |
download | linux-c734f496770801f97ae1a59607634b972b002cdf.tar.xz |
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 <daniels@collabora.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: CK Hu <ck.hu@mediatek.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180518134705.12533-1-daniels@collabora.com
Diffstat (limited to 'drivers/gpu/drm/mediatek/mtk_drm_plane.c')
-rw-r--r-- | drivers/gpu/drm/mediatek/mtk_drm_plane.c | 5 |
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; |