mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
qom: Tidy up a few object_initialize_child() calls
The callers of object_initialize_child() commonly pass either &child, sizeof(child), or pchild, sizeof(*pchild). Tidy up the few that don't, mostly to keep the next commit simpler. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-36-armbru@redhat.com>
This commit is contained in:
parent
cd9ae806cd
commit
19dc7e977c
4 changed files with 4 additions and 5 deletions
|
@ -1155,7 +1155,7 @@ static void pnv_phb4_instance_init(Object *obj)
|
|||
QLIST_INIT(&phb->dma_spaces);
|
||||
|
||||
/* XIVE interrupt source object */
|
||||
object_initialize_child(obj, "source", &phb->xsrc, sizeof(XiveSource),
|
||||
object_initialize_child(obj, "source", &phb->xsrc, sizeof(phb->xsrc),
|
||||
TYPE_XIVE_SOURCE, &error_abort, NULL);
|
||||
|
||||
/* Root Port */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue