提交 ac6cc1d8 编写于 作者: J John Ferlan

conf: Clean up virDomainNumaDefCPUFormatXML

Don't use a unary comparison for an int value - compare against zero
directly instead.
上级 742494ee
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册