forked from enlightenment/efl
drm2: Fix shadow variable
int ret is not even needed here.
This commit is contained in:
parent
d143becfe1
commit
a9d4d7e836
|
@ -131,12 +131,8 @@ ecore_drm2_fb_gbm_create(int fd, int width, int height, int depth, int bpp, unsi
|
||||||
|
|
||||||
if (!_fb2_create(fb))
|
if (!_fb2_create(fb))
|
||||||
{
|
{
|
||||||
int ret;
|
if (drmModeAddFB(fd, width, height, depth, bpp,
|
||||||
|
fb->stride, fb->hdl, &fb->id))
|
||||||
ret =
|
|
||||||
drmModeAddFB(fd, width, height, depth, bpp,
|
|
||||||
fb->stride, fb->hdl, &fb->id);
|
|
||||||
if (ret)
|
|
||||||
{
|
{
|
||||||
ERR("Could not add framebuffer: %m");
|
ERR("Could not add framebuffer: %m");
|
||||||
goto err;
|
goto err;
|
||||||
|
|
Loading…
Reference in New Issue