qom/container: remove .instance_size initializer from container_info

You can omit .instance_size if it is the same as that of the parent.

    .class_size = sizeof(ObjectClass)

... is omitted here, so removing .instance_size is more consistent.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Message-Id: <20200513033600.2709646-1-masahiroy@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Masahiro Yamada 2020-05-13 12:36:00 +09:00 committed by Paolo Bonzini
parent e27a959581
commit c5e1870958

View File

@ -16,7 +16,6 @@
static const TypeInfo container_info = { static const TypeInfo container_info = {
.name = "container", .name = "container",
.instance_size = sizeof(Object),
.parent = TYPE_OBJECT, .parent = TYPE_OBJECT,
}; };