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:
Ján Tomko 2019-08-20 23:35:59 +02:00
parent 991dcd9f5f
commit cf400975f3

View File

@ -19643,7 +19643,6 @@ virDomainMemorytuneDefParse(virDomainDefPtr def,
static virDomainDefPtr static virDomainDefPtr
virDomainDefParseXML(xmlDocPtr xml, virDomainDefParseXML(xmlDocPtr xml,
xmlNodePtr root ATTRIBUTE_UNUSED,
xmlXPathContextPtr ctxt, xmlXPathContextPtr ctxt,
virCapsPtr caps, virCapsPtr caps,
virDomainXMLOptionPtr xmlopt, virDomainXMLOptionPtr xmlopt,
@ -21386,7 +21385,7 @@ virDomainObjParseXML(xmlDocPtr xml,
oldnode = ctxt->node; oldnode = ctxt->node;
ctxt->node = config; ctxt->node = config;
obj->def = virDomainDefParseXML(xml, config, ctxt, caps, xmlopt, flags); obj->def = virDomainDefParseXML(xml, ctxt, caps, xmlopt, flags);
ctxt->node = oldnode; ctxt->node = oldnode;
if (!obj->def) if (!obj->def)
goto error; goto error;
@ -21531,7 +21530,7 @@ virDomainDefParseNode(xmlDocPtr xml,
ctxt->node = root; ctxt->node = root;
if (!(def = virDomainDefParseXML(xml, root, ctxt, caps, xmlopt, flags))) if (!(def = virDomainDefParseXML(xml, ctxt, caps, xmlopt, flags)))
goto cleanup; goto cleanup;
/* callback to fill driver specific domain aspects */ /* callback to fill driver specific domain aspects */