diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-13 03:25:01 +0900 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-10 12:09:58 -0400 |
commit | 3d91293ed2c023b016d845b68ee184ee0f435227 (patch) | |
tree | 441e2cd0b210a8c36052ef65faa6014a681a60ce /qom/object.c | |
parent | e5a0cc5e44c0344a3b8e284feeeffe43debca995 (diff) | |
download | qemu-3d91293ed2c023b016d845b68ee184ee0f435227.zip qemu-3d91293ed2c023b016d845b68ee184ee0f435227.tar.gz qemu-3d91293ed2c023b016d845b68ee184ee0f435227.tar.bz2 |
qom/object: simplify type_initialize_interface()
iface_impl->class is the same as new_iface. Make it more readable.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Message-Id: <20200512182501.2300530-1-masahiroy@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qom/object.c')
-rw-r--r-- | qom/object.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qom/object.c b/qom/object.c index a4094a6..bc39ad4 100644 --- a/qom/object.c +++ b/qom/object.c @@ -262,8 +262,7 @@ static void type_initialize_interface(TypeImpl *ti, TypeImpl *interface_type, new_iface->concrete_class = ti->class; new_iface->interface_type = interface_type; - ti->class->interfaces = g_slist_append(ti->class->interfaces, - iface_impl->class); + ti->class->interfaces = g_slist_append(ti->class->interfaces, new_iface); } static void object_property_free(gpointer data) |