drm2: Fix shadow variable

int ret is not even needed here.
This commit is contained in:
Jean-Philippe Andre 2016-07-19 17:05:56 +09:00
parent d143becfe1
commit a9d4d7e836
1 changed files with 2 additions and 6 deletions

View File

@ -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;