mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-03 21:35:58 +00:00
vli: Invert the logic to reboot the parent FuCliUsbhubDevice, not the child
This commit is contained in:
parent
e20d6b3c33
commit
ea71dc7e73
@ -33,10 +33,10 @@ fu_plugin_vli_get_parent (GPtrArray *devices)
|
||||
for (guint i = 0; i < devices->len; i++) {
|
||||
FuDevice *dev = g_ptr_array_index (devices, i);
|
||||
FuDevice *parent = fu_device_get_parent (dev);
|
||||
if (FU_IS_VLI_USBHUB_DEVICE (dev))
|
||||
return g_object_ref (dev);
|
||||
if (parent != NULL && FU_IS_VLI_USBHUB_DEVICE (parent))
|
||||
return g_object_ref (parent);
|
||||
if (FU_IS_VLI_USBHUB_DEVICE (dev))
|
||||
return g_object_ref (dev);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user