mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
conf: virDomainDefParseMemory: remove pointless assignment
Evaluate the XPath as a boolean, instead of trying to get a node out of it. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
be4047d051
commit
74077a651b
@ -19184,7 +19184,7 @@ virDomainDefParseMemory(virDomainDef *def,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((node = virXPathNode("./memoryBacking/nosharepages", ctxt)))
|
if (virXPathBoolean("boolean(./memoryBacking/nosharepages)", ctxt))
|
||||||
def->mem.nosharepages = true;
|
def->mem.nosharepages = true;
|
||||||
|
|
||||||
if (virXPathBoolean("boolean(./memoryBacking/locked)", ctxt))
|
if (virXPathBoolean("boolean(./memoryBacking/locked)", ctxt))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user