projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0802050
)
drm/mtk: Remove impossible internal error
author
Daniel Stone
<daniels@collabora.com>
Fri, 18 May 2018 13:47:03 +0000
(14:47 +0100)
committer
Daniel Stone
<daniels@collabora.com>
Fri, 18 May 2018 14:56:16 +0000
(15:56 +0100)
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
drivers/gpu/drm/mediatek/mtk_drm_plane.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/mediatek/mtk_drm_plane.c
b/drivers/gpu/drm/mediatek/mtk_drm_plane.c
index 2f4b0ffee598948e12a00822c073ca9f34d3fb31..149fc4372917be3a8df9abb747809db489f36d04 100644
(file)
--- 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;