Skip to content

Commit

Permalink
qom/container: remove .instance_size initializer from container_info
Browse files Browse the repository at this point in the history
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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
masahir0y authored and bonzini committed Jun 10, 2020
1 parent e27a959 commit c5e1870
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion qom/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

static const TypeInfo container_info = {
.name = "container",
.instance_size = sizeof(Object),
.parent = TYPE_OBJECT,
};

Expand Down

0 comments on commit c5e1870

Please sign in to comment.