diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-13 12:36:00 +0900 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-10 12:09:59 -0400 |
commit | c5e18709585c6f2a3464f89434b0040ce5164d9d (patch) | |
tree | 6a25c87a55d6f268eadbee93145f70ffcb67661c /qom/container.c | |
parent | e27a959581759d4f6df45993ba940ec1f769ea68 (diff) |
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>
Diffstat (limited to 'qom/container.c')
-rw-r--r-- | qom/container.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/qom/container.c b/qom/container.c index 14e7ae485b..455e8410c6 100644 --- a/qom/container.c +++ b/qom/container.c @@ -16,7 +16,6 @@ static const TypeInfo container_info = { .name = "container", - .instance_size = sizeof(Object), .parent = TYPE_OBJECT, }; |