ecore-drm: don't return EINA_FALSE as an invalid fd

Summary:
0 is a valid fd.  EINA_FALSE is 0.  EINA_FALSE is a valid fd.

@fix

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2456
This commit is contained in:
Derek Foreman 2015-04-30 14:29:43 -04:00 committed by Chris Michael
parent c5a21aaf84
commit f7ae5f28d4
1 changed files with 2 additions and 2 deletions

View File

@ -291,8 +291,8 @@ _ecore_drm_logind_device_open_no_pending(const char *device)
{
struct stat st;
if (stat(device, &st) < 0) return EINA_FALSE;
if (!S_ISCHR(st.st_mode)) return EINA_FALSE;
if (stat(device, &st) < 0) return -1;
if (!S_ISCHR(st.st_mode)) return -1;
return _ecore_drm_dbus_device_take_no_pending(major(st.st_rdev), minor(st.st_rdev), NULL, -1);
}