ret is overwritten by drmModeAddFB2 call (Found by clang source code analyzer)
Signed-off-by: Emre Ucan <eu...@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 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel