From a9d4d7e83639dd36ee02ca54e9861f6ebdaf63c0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Tue, 19 Jul 2016 17:05:56 +0900 Subject: [PATCH] drm2: Fix shadow variable int ret is not even needed here. --- src/lib/ecore_drm2/ecore_drm2_fb.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c index 07d4e51..f91a477 100644 --- a/src/lib/ecore_drm2/ecore_drm2_fb.c +++ b/src/lib/ecore_drm2/ecore_drm2_fb.c @@ -131,12 +131,8 @@ ecore_drm2_fb_gbm_create(int fd, int width, int height, int depth, int bpp, unsi if (!_fb2_create(fb)) { - int ret; - - ret = - drmModeAddFB(fd, width, height, depth, bpp, - fb->stride, fb->hdl, &fb->id); - if (ret) + if (drmModeAddFB(fd, width, height, depth, bpp, + fb->stride, fb->hdl, &fb->id)) { ERR("Could not add framebuffer: %m"); goto err; -- 2.7.4