OSDN Git Service

tests/unit/test-smp-parse: No need to explicitly zero MachineClass members
authorYanan Wang <wangyanan55@huawei.com>
Tue, 28 Dec 2021 09:22:12 +0000 (17:22 +0800)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 31 Dec 2021 12:42:46 +0000 (13:42 +0100)
commit16f573847697038fae6657e2ed84ad2e1c4786ad
treeae438d9ea07c5f864f8eb69a43ac513b7ea0f191
parente5ef89ae44f6720e32dc4f516b2e997d2377f08a
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>
tests/unit/test-smp-parse.c