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>
This commit is contained in:
Chris Michael 2014-09-23 13:04:57 -04:00
parent 25c3570294
commit 5fbe3f1f70
1 changed files with 2 additions and 2 deletions

View File

@ -323,10 +323,10 @@ eeze_udev_syspath_get_sysnum(const char *syspath)
int ret = -1;
if (!syspath)
return NULL;
return -1;
if (!(device = _new_device(syspath)))
return NULL;
return -1;
if ((test = udev_device_get_sysnum(device)))
ret = atoi(test);