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>
This commit is contained in:
parent
e5a0cc5e44
commit
3d91293ed2
@ -262,8 +262,7 @@ static void type_initialize_interface(TypeImpl *ti, TypeImpl *interface_type,
|
|||||||
new_iface->concrete_class = ti->class;
|
new_iface->concrete_class = ti->class;
|
||||||
new_iface->interface_type = interface_type;
|
new_iface->interface_type = interface_type;
|
||||||
|
|
||||||
ti->class->interfaces = g_slist_append(ti->class->interfaces,
|
ti->class->interfaces = g_slist_append(ti->class->interfaces, new_iface);
|
||||||
iface_impl->class);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void object_property_free(gpointer data)
|
static void object_property_free(gpointer data)
|
||||||
|
Loading…
Reference in New Issue
Block a user