]> git.ipfire.org Git - thirdparty/qemu.git/commit
qom: use object_new_with_class when possible
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Oct 2024 09:45:51 +0000 (10:45 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Oct 2024 17:28:32 +0000 (18:28 +0100)
commitb801e3cb2a7fd631a219222a8cbe9d554c906070
tree6ac9a4df0938700c017b91196f971a667aeef24f
parent845b54efafa5c28040570dcb6d7f8f84d23e37f3
qom: use object_new_with_class when possible

A small optimization/code simplification, that also makes it clear that
we won't look for a type in a not-loaded-yet module---the module will
have been loaded by a call to module_object_class_by_name(), if present.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/qdev.c
qom/object_interfaces.c
qom/qom-qmp-cmds.c