diff --git a/legacy/eeze/src/lib/eeze_udev_private.c b/legacy/eeze/src/lib/eeze_udev_private.c index 0d2220dae2..cb90462d33 100644 --- a/legacy/eeze/src/lib/eeze_udev_private.c +++ b/legacy/eeze/src/lib/eeze_udev_private.c @@ -34,7 +34,7 @@ _walk_parents_test_attr(_udev_device * device, const char *sysattr, _udev_device *parent, *child = device; const char *test; - if ((test = udev_device_get_sysattr_value(device, sysattr))) + if (udev_device_get_sysattr_value(device, sysattr)) return 1; parent = udev_device_get_parent(child); diff --git a/legacy/eeze/src/lib/eeze_udev_watch.c b/legacy/eeze/src/lib/eeze_udev_watch.c index c34f667a76..d08c1054d7 100644 --- a/legacy/eeze/src/lib/eeze_udev_watch.c +++ b/legacy/eeze/src/lib/eeze_udev_watch.c @@ -200,11 +200,10 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler * fd_handler) goto error; /* if device is not the one which has the temp input, we must go up the chain */ - if (!(test = udev_device_get_sysattr_value(device, "temp1_input"))) + if (!udev_device_get_sysattr_value(device, "temp1_input")) { 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")) { tmpdev = device;