|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH v5 05/14] tests/unit/test-smp-parse: No need to explicitly zero MachineClass members |
Date: | Tue, 28 Dec 2021 16:58:04 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 |
On 12/28/21 10:22, Yanan Wang wrote: > 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> > --- > tests/unit/test-smp-parse.c | 10 ---------- > 1 file changed, 10 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[Prev in Thread] | Current Thread | [Next in Thread] |