diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index 81ca67d6..c09c49bf 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;