summary refs log tree commit diff stats
path: root/python/qemu/qmp/qom_common.py
diff options
context:
space:
mode:
authorYanan Wang <wangyanan55@huawei.com>2021-12-28 17:22:12 +0800
committerPhilippe Mathieu-Daudé <philmd@redhat.com>2021-12-31 13:42:46 +0100
commit16f573847697038fae6657e2ed84ad2e1c4786ad (patch)
treeae438d9ea07c5f864f8eb69a43ac513b7ea0f191 /python/qemu/qmp/qom_common.py
parente5ef89ae44f6720e32dc4f516b2e997d2377f08a (diff)
downloadfocaccia-qemu-16f573847697038fae6657e2ed84ad2e1c4786ad.tar.gz
focaccia-qemu-16f573847697038fae6657e2ed84ad2e1c4786ad.zip
tests/unit/test-smp-parse: No need to explicitly zero MachineClass members
The default value of the MachineClass members is 0, which
means we don't have to explicitly zero them. Also the value
of "mc->smp_props.prefer_sockets" will be taken care of by
smp_parse_test(), we don't necessarily need the statement
in machine_base_class_init() either.

Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211228092221.21068-6-wangyanan55@huawei.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'python/qemu/qmp/qom_common.py')
0 files changed, 0 insertions, 0 deletions