summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-09-23 13:04:57 -0400
committerChris Michael <cp.michael@samsung.com>2014-09-23 13:04:57 -0400
commit5fbe3f1f70ff4ce16b2a6b13dcea921b500836eb (patch)
tree5e0470a4b8b908bff1a7b483bfb5c84776170de7
parent25c3570294a6597af15e302bed54f3fc7ee7b9c7 (diff)
eeze: Fix return value for eeze_udev_syspath_get_sysnum
Summary: oopsie !! Big fat copy/paste error :( This fixes the return value for the eeze_udev_syspath_get_sysnum function @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-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 40dbf3a..322ff31 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);