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 <eucan@de.adit-jv.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Emre Ucan
2018-03-20 15:28:22 +01:00
committed by Pekka Paalanen
parent 4d1cd36c9e
commit ff449f5ab1
-2
View File
@@ -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;