mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
virDomainDefParseXML: remove unused parameter
We do not need to pass the root node, since it's already included in the XPathContext. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
991dcd9f5f
commit
cf400975f3
@ -19643,7 +19643,6 @@ virDomainMemorytuneDefParse(virDomainDefPtr def,
|
||||
|
||||
static virDomainDefPtr
|
||||
virDomainDefParseXML(xmlDocPtr xml,
|
||||
xmlNodePtr root ATTRIBUTE_UNUSED,
|
||||
xmlXPathContextPtr ctxt,
|
||||
virCapsPtr caps,
|
||||
virDomainXMLOptionPtr xmlopt,
|
||||
@ -21386,7 +21385,7 @@ virDomainObjParseXML(xmlDocPtr xml,
|
||||
|
||||
oldnode = ctxt->node;
|
||||
ctxt->node = config;
|
||||
obj->def = virDomainDefParseXML(xml, config, ctxt, caps, xmlopt, flags);
|
||||
obj->def = virDomainDefParseXML(xml, ctxt, caps, xmlopt, flags);
|
||||
ctxt->node = oldnode;
|
||||
if (!obj->def)
|
||||
goto error;
|
||||
@ -21531,7 +21530,7 @@ virDomainDefParseNode(xmlDocPtr xml,
|
||||
|
||||
ctxt->node = root;
|
||||
|
||||
if (!(def = virDomainDefParseXML(xml, root, ctxt, caps, xmlopt, flags)))
|
||||
if (!(def = virDomainDefParseXML(xml, ctxt, caps, xmlopt, flags)))
|
||||
goto cleanup;
|
||||
|
||||
/* callback to fill driver specific domain aspects */
|
||||
|
Loading…
x
Reference in New Issue
Block a user