eeze: Fix issue with eeze_udev_find_by_type not finding devices when

name is NULL.

Summary: This was totally wrong !! eeze_udev_find_by_type can be
passed EEZE_UDEV_TYPE_NONE to list all devices and it can also be
passed name == NULL to find All devices listed of a certain type. To
check for !etype && !name is just plain Wrong !! We have checks below
for a valid name (and then do a comparison).

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-09-23 14:58:37 -04:00
parent 8dffde69d1
commit 431c3cac58
1 changed files with 0 additions and 3 deletions

View File

@ -150,9 +150,6 @@ eeze_udev_find_by_type(Eeze_Udev_Type etype,
const char *devname;
Eina_List *ret = NULL;
if ((!etype) && (!name))
return NULL;
en = udev_enumerate_new(udev);
if (!en)