[PATCH weston 2/7] compositor-drm: remove dead assigment in drm_fb_create_dumb
Emre Ucan
eucan at de.adit-jv.com
Tue Mar 20 14:28:22 UTC 2018
ret is overwritten by drmModeAddFB2 call
(Found by clang source code analyzer)
Signed-off-by: Emre Ucan <eucan at de.adit-jv.com>
---
libweston/compositor-drm.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index f8c13ee..506ded5 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -891,8 +891,6 @@ drm_fb_create_dumb(struct drm_backend *b, int width, int height,
fb->height = height;
fb->fd = b->drm.fd;
- ret = -1;
-
handles[0] = fb->handle;
pitches[0] = fb->stride;
offsets[0] = 0;
--
2.7.4
More information about the wayland-devel
mailing list