summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_logind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_logind.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_logind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_logind.c b/src/lib/ecore_drm/ecore_drm_logind.c
index 0a94885052..3fd0f20593 100644
--- a/src/lib/ecore_drm/ecore_drm_logind.c
+++ b/src/lib/ecore_drm/ecore_drm_logind.c
@@ -291,8 +291,8 @@ _ecore_drm_logind_device_open_no_pending(const char *device)
291{ 291{
292 struct stat st; 292 struct stat st;
293 293
294 if (stat(device, &st) < 0) return EINA_FALSE; 294 if (stat(device, &st) < 0) return -1;
295 if (!S_ISCHR(st.st_mode)) return EINA_FALSE; 295 if (!S_ISCHR(st.st_mode)) return -1;
296 296
297 return _ecore_drm_dbus_device_take_no_pending(major(st.st_rdev), minor(st.st_rdev), NULL, -1); 297 return _ecore_drm_dbus_device_take_no_pending(major(st.st_rdev), minor(st.st_rdev), NULL, -1);
298} 298}