1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

qemu: Move simplification variable to begining of the function

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2015-10-01 07:23:38 +02:00
parent 37e85cff06
commit 04b57b4ae1

View File

@ -5052,6 +5052,7 @@ qemuBuildMemoryBackendStr(unsigned long long size,
virBitmapPtr nodemask = NULL;
int ret = -1;
virJSONValuePtr props = NULL;
bool nodeSpecified = virDomainNumatuneNodeSpecified(def->numa, guestNode);
*backendProps = NULL;
*backendType = NULL;
@ -5204,7 +5205,6 @@ qemuBuildMemoryBackendStr(unsigned long long size,
}
if (!hugepage && !pagesize) {
bool nodeSpecified = virDomainNumatuneNodeSpecified(def->numa, guestNode);
if ((userNodeset || nodeSpecified || force) &&
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_MEMORY_RAM)) {