From ff449f5ab13e465b497a059f5718d6c8037dec87 Mon Sep 17 00:00:00 2001 From: Emre Ucan Date: Tue, 20 Mar 2018 15:28:22 +0100 Subject: [PATCH] compositor-drm: remove dead assigment in drm_fb_create_dumb ret is overwritten by drmModeAddFB2 call (Found by clang source code analyzer) Signed-off-by: Emre Ucan Reviewed-by: Pekka Paalanen --- libweston/compositor-drm.c | 2 -- 1 file changed, 2 deletions(-) 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;