aboutsummaryrefslogtreecommitdiff
path: root/qom
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-05-13 03:25:01 +0900
committerPaolo Bonzini <pbonzini@redhat.com>2020-06-10 12:09:58 -0400
commit3d91293ed2c023b016d845b68ee184ee0f435227 (patch)
tree441e2cd0b210a8c36052ef65faa6014a681a60ce /qom
parente5a0cc5e44c0344a3b8e284feeeffe43debca995 (diff)
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')
-rw-r--r--qom/object.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/qom/object.c b/qom/object.c
index a4094a6bb5..bc39ad4b99 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)