mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
conf: cpupin: Remove useless checking of vcpupin element count
The check doesn't make much sense as right below it the entries are either checked for duplicity or ignored in some cases. Having this check doesn't actually forbid passing invalid values.
This commit is contained in:
parent
a821f1f028
commit
cb8a94bfa0
@ -11993,12 +11993,6 @@ virDomainDefParseXML(xmlDocPtr xml,
|
||||
if (n && VIR_ALLOC_N(def->cputune.vcpupin, n) < 0)
|
||||
goto error;
|
||||
|
||||
if (n > def->maxvcpus) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
"%s", _("vcpupin nodes must be less than maxvcpus"));
|
||||
goto error;
|
||||
}
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
virDomainVcpuPinDefPtr vcpupin = NULL;
|
||||
vcpupin = virDomainVcpuPinDefParseXML(nodes[i], ctxt, def->maxvcpus, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user