forked from enlightenment/efl
parent
6b5d5eab73
commit
0136fa4aed
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue