Re: [PATCH v2 2/2] virSysinfoReadARM: Try reading DMI table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2019-05-10 at 14:20 +0200, Michal Privoznik wrote:
[...]
> +static bool
> +virSysinfoDefEmpty(const virSysinfoDef *def)

This is a predicate, so please call it virSysinfoDefIsEmpty().

> +{
> +    return !(def->bios || def->system || def->nbaseBoard ||
> +             def->chassis || def->nprocessor || def->nmemory || def->oemStrings);

For nbaseBoard, nprocessor and nmemory you should use explicit
numeric comparison, according to the recently updated contributor
guidelines[1].

With the two nits above addressed,

  Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>


[1] https://libvirt.org/hacking.html#conditions
-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux