mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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.
This commit is contained in:
parent
68115fe0ab
commit
b871b78986
@ -4730,7 +4730,7 @@ qemuDomainSetVcpusMax(virQEMUDriverPtr driver,
|
|||||||
goto cleanup;
|
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
|
/* allow setting a valid vcpu count for the topology so an invalid
|
||||||
* setting may be corrected via this API */
|
* setting may be corrected via this API */
|
||||||
if (nvcpus != persistentDef->cpu->sockets *
|
if (nvcpus != persistentDef->cpu->sockets *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user