mirror of https://gitee.com/openkylin/libvirt.git
conf: Clean up virDomainNumaDefCPUFormatXML
Don't use a unary comparison for an int value - compare against zero directly instead.
This commit is contained in:
parent
742494eed8
commit
ac6cc1d822
|
@ -992,7 +992,7 @@ virDomainNumaDefCPUFormatXML(virBufferPtr buf,
|
|||
virDomainMemoryAccessTypeToString(memAccess));
|
||||
|
||||
ndistances = def->mem_nodes[i].ndistances;
|
||||
if (!ndistances) {
|
||||
if (ndistances == 0) {
|
||||
virBufferAddLit(buf, "/>\n");
|
||||
} else {
|
||||
size_t j;
|
||||
|
|
Loading…
Reference in New Issue