parent
683eafd4c8
commit
8b58afe33a
|
@ -16,6 +16,8 @@ _walk_parents_for_attr(struct udev_device *device, const char *sysattr, const ch
|
|||
struct udev_device *parent, *child = device;
|
||||
const char *test;
|
||||
|
||||
if ((test = udev_device_get_sysattr_value(device, sysattr))
|
||||
return 1;
|
||||
parent = udev_device_get_parent(child);
|
||||
for (; parent; child = parent, parent = udev_device_get_parent(child))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue