summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eeze/eeze_udev_syspath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eeze/eeze_udev_syspath.c b/src/lib/eeze/eeze_udev_syspath.c
index 40dbf3abe2..322ff31c52 100644
--- a/src/lib/eeze/eeze_udev_syspath.c
+++ b/src/lib/eeze/eeze_udev_syspath.c
@@ -323,10 +323,10 @@ eeze_udev_syspath_get_sysnum(const char *syspath)
323 int ret = -1; 323 int ret = -1;
324 324
325 if (!syspath) 325 if (!syspath)
326 return NULL; 326 return -1;
327 327
328 if (!(device = _new_device(syspath))) 328 if (!(device = _new_device(syspath)))
329 return NULL; 329 return -1;
330 330
331 if ((test = udev_device_get_sysnum(device))) 331 if ((test = udev_device_get_sysnum(device)))
332 ret = atoi(test); 332 ret = atoi(test);