add unistd.h and kill off another dead store
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sat, 15 Jan 2011 20:25:44 +0000 (20:25 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sat, 15 Jan 2011 20:25:44 +0000 (20:25 +0000)
SVN revision: 56143

legacy/eeze/src/lib/eeze_udev_find.c

index d559876..3e94c39 100644 (file)
@@ -5,6 +5,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 #include <Eeze.h>
 #include "eeze_udev_private.h"
@@ -280,7 +281,7 @@ eeze_udev_find_by_type(Eeze_Udev_Type etype,
                   devname = NULL;
 
                   for (parent = udev_device_get_parent(device); parent; parent = udev_device_get_parent(parent)) /*check for parent */
-                    if (((test = udev_device_get_sysattr_value(parent, "temp1_input"))))
+                    if ((udev_device_get_sysattr_value(parent, "temp1_input")))
                       {
                          devname = udev_device_get_syspath(parent);
                          break;