From 3d91293ed2c023b016d845b68ee184ee0f435227 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Wed, 13 May 2020 03:25:01 +0900 Subject: qom/object: simplify type_initialize_interface() iface_impl->class is the same as new_iface. Make it more readable. Signed-off-by: Masahiro Yamada Message-Id: <20200512182501.2300530-1-masahiroy@kernel.org> Signed-off-by: Paolo Bonzini --- qom/object.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qom') 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) -- cgit v1.1