Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c734f496 authored by Daniel Stone's avatar Daniel Stone
Browse files

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>
Acked-by: default avatarThierry 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
parent 08020509
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;