mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-30 01:13:49 +00:00
trivial: Copy the physical ID if unset for the device child
This commit is contained in:
parent
59c4d02698
commit
08ba5be69b
@ -446,6 +446,9 @@ fu_device_add_child (FuDevice *self, FuDevice *child)
|
|||||||
g_ptr_array_add (priv->children, g_object_ref (child));
|
g_ptr_array_add (priv->children, g_object_ref (child));
|
||||||
|
|
||||||
/* copy from main device if unset */
|
/* copy from main device if unset */
|
||||||
|
if (fu_device_get_physical_id (child) == NULL &&
|
||||||
|
fu_device_get_physical_id (self) != NULL)
|
||||||
|
fu_device_set_physical_id (child, fu_device_get_physical_id (self));
|
||||||
if (fu_device_get_vendor (child) == NULL)
|
if (fu_device_get_vendor (child) == NULL)
|
||||||
fu_device_set_vendor (child, fu_device_get_vendor (self));
|
fu_device_set_vendor (child, fu_device_get_vendor (self));
|
||||||
if (fu_device_get_vendor_id (child) == NULL)
|
if (fu_device_get_vendor_id (child) == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user