summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-09-23 14:58:37 -0400
committerChris Michael <cp.michael@samsung.com>2014-09-23 14:58:37 -0400
commit431c3cac58e6391f238e52d13d61b51bf2d6ff9e (patch)
treee76d0ff558484f1f22b9d502fe86ff4c5e941fc9
parent8dffde69d1e8e5014649f4302ad4829c3466d22d (diff)
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>
-rw-r--r--src/lib/eeze/eeze_udev_find.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/eeze/eeze_udev_find.c b/src/lib/eeze/eeze_udev_find.c
index 71aa30b..252d7af 100644
--- a/src/lib/eeze/eeze_udev_find.c
+++ b/src/lib/eeze/eeze_udev_find.c
@@ -150,9 +150,6 @@ eeze_udev_find_by_type(Eeze_Udev_Type etype,
150 const char *devname; 150 const char *devname;
151 Eina_List *ret = NULL; 151 Eina_List *ret = NULL;
152 152
153 if ((!etype) && (!name))
154 return NULL;
155
156 en = udev_enumerate_new(udev); 153 en = udev_enumerate_new(udev);
157 154
158 if (!en) 155 if (!en)