提交 b871b789 编写于 作者: P Peter Krempa

qemu: driver: Remove unnecessary condition

At this point it's guaranteed that 'persistentDef' is non-NULL so we
don't need to check it again.
上级 68115fe0
......@@ -4730,7 +4730,7 @@ qemuDomainSetVcpusMax(virQEMUDriverPtr driver,
goto cleanup;
}
if (persistentDef && persistentDef->cpu && persistentDef->cpu->sockets) {
if (persistentDef->cpu && persistentDef->cpu->sockets) {
/* allow setting a valid vcpu count for the topology so an invalid
* setting may be corrected via this API */
if (nvcpus != persistentDef->cpu->sockets *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册