mirror of
https://github.com/qemu/qemu.git
synced 2024-11-30 23:33:51 +08:00
8352a5b8cc
The callers of sysbus_init_child_obj() commonly pass either &child, sizeof(child), or pchild, sizeof(*pchild). Tidy up the few that use sizeof(child_type) instead, mostly to keep future commits simpler. Coccinelle script: @@ expression parent, propname, type; type T; T child; @@ - sysbus_init_child_obj(parent, propname, &child, sizeof(T), type) + sysbus_init_child_obj(parent, propname, &child, sizeof(child), type) @@ expression parent, propname, type; type T; T *child; @@ - sysbus_init_child_obj(parent, propname, child, sizeof(T), type) + sysbus_init_child_obj(parent, propname, child, sizeof(*child), type) Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-42-armbru@redhat.com> |
||
---|---|---|
.. | ||
boot.c | ||
boot.h | ||
Kconfig | ||
Makefile.objs | ||
petalogix_ml605_mmu.c | ||
petalogix_s3adsp1800_mmu.c | ||
xlnx-zynqmp-pmu.c |