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:
Peter Krempa 2016-09-07 13:59:25 +02:00
parent 68115fe0ab
commit b871b78986

View File

@ -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 *