diff mbox series

qom/container: remove .instance_size initializer from container_info

Message ID 20200513033600.2709646-1-masahiroy@kernel.org
State New
Headers show
Series qom/container: remove .instance_size initializer from container_info | expand

Commit Message

Masahiro Yamada May 13, 2020, 3:36 a.m. UTC
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>
---

 qom/container.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/qom/container.c b/qom/container.c
index f6ccaf7ea7..4c030d6dda 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,
 };