|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 05/15] x86: implement get hw info flow for MBA
>>> On 26.09.17 at 10:46, <roger.pau@xxxxxxxxxx> wrote:
> On Sat, Sep 23, 2017 at 09:48:14AM +0000, Yi Sun wrote:
>> --- a/xen/arch/x86/sysctl.c
>> +++ b/xen/arch/x86/sysctl.c
>> @@ -174,7 +174,7 @@ long arch_do_sysctl(
>> case XEN_SYSCTL_psr_alloc:
>> switch ( sysctl->u.psr_alloc.cmd )
>> {
>> - uint32_t data[PSR_INFO_ARRAY_SIZE];
>> + uint32_t data[PSR_INFO_ARRAY_SIZE] = {0};
>
> I would rather do "{ 0 };" or "{ };" (note the spaces around the 0).
The latter of the two suggested variants please.
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |