Remove redundant variable (we don't need 'fd' here).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-12-09 11:24:03 +00:00
parent 77f023268d
commit e4c1a1fc33
1 changed files with 2 additions and 13 deletions

View File

@ -188,7 +188,6 @@ ecore_drm_device_open(Ecore_Drm_Device *dev)
char devpath[PATH_MAX];
Eina_Bool ret = EINA_FALSE;
void *data;
int fd = -1;
/* check for valid device */
if ((!dev) || (!dev->devname)) return EINA_FALSE;
@ -201,20 +200,10 @@ ecore_drm_device_open(Ecore_Drm_Device *dev)
/* receive the reply from our slave */
ret = _ecore_drm_message_receive(ECORE_DRM_OP_DEVICE_OPEN, &data, sizeof(int));
fd = *((int *)data);
if (ret)
{
DBG("SUCCESS !!!: %d", fd);
}
else
{
DBG("FAILURE !!!");
}
if (!ret) return EINA_FALSE;
/* set device fd */
dev->fd = fd;
dev->fd = *((int *)data);
return EINA_TRUE;
}