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;
|
_udev_device *parent, *child = device;
|
||||||
const char *test;
|
const char *test;
|
||||||
|
|
||||||
if ((test = udev_device_get_sysattr_value(device, sysattr)))
|
if (udev_device_get_sysattr_value(device, sysattr))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
parent = udev_device_get_parent(child);
|
parent = udev_device_get_parent(child);
|
||||||
|
|
|
@ -200,11 +200,10 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler * fd_handler)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
/* if device is not the one which has the temp input, we must go up the chain */
|
/* 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 */
|
for (parent = udev_device_get_parent(device); parent; parent = udev_device_get_parent(parent)) /*check for parent */
|
||||||
if (((test =
|
if (udev_device_get_sysattr_value(parent, "temp1_input"))
|
||||||
udev_device_get_sysattr_value(parent, "temp1_input"))))
|
|
||||||
{
|
{
|
||||||
tmpdev = device;
|
tmpdev = device;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue