mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
domain_conf: Remove redundant variable
xmlDocPtr is no longer needed, because validation against schema was moved to another function. Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
e6c730c865
commit
6106327b23
@ -19515,8 +19515,7 @@ virDomainDefControllersParse(virDomainDef *def,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static virDomainDef *
|
static virDomainDef *
|
||||||
virDomainDefParseXML(xmlDocPtr xml G_GNUC_UNUSED,
|
virDomainDefParseXML(xmlXPathContextPtr ctxt,
|
||||||
xmlXPathContextPtr ctxt,
|
|
||||||
virDomainXMLOption *xmlopt,
|
virDomainXMLOption *xmlopt,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
@ -20281,8 +20280,7 @@ virDomainDefParseXML(xmlDocPtr xml G_GNUC_UNUSED,
|
|||||||
|
|
||||||
|
|
||||||
static virDomainObj *
|
static virDomainObj *
|
||||||
virDomainObjParseXML(xmlDocPtr xml,
|
virDomainObjParseXML(xmlXPathContextPtr ctxt,
|
||||||
xmlXPathContextPtr ctxt,
|
|
||||||
virDomainXMLOption *xmlopt,
|
virDomainXMLOption *xmlopt,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
@ -20310,7 +20308,7 @@ virDomainObjParseXML(xmlDocPtr xml,
|
|||||||
|
|
||||||
oldnode = ctxt->node;
|
oldnode = ctxt->node;
|
||||||
ctxt->node = config;
|
ctxt->node = config;
|
||||||
obj->def = virDomainDefParseXML(xml, ctxt, xmlopt, flags);
|
obj->def = virDomainDefParseXML(ctxt, xmlopt, flags);
|
||||||
ctxt->node = oldnode;
|
ctxt->node = oldnode;
|
||||||
if (!obj->def)
|
if (!obj->def)
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -20443,7 +20441,7 @@ virDomainDefParseNode(xmlDocPtr xml,
|
|||||||
|
|
||||||
ctxt->node = root;
|
ctxt->node = root;
|
||||||
|
|
||||||
if (!(def = virDomainDefParseXML(xml, ctxt, xmlopt, flags)))
|
if (!(def = virDomainDefParseXML(ctxt, xmlopt, flags)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* callback to fill driver specific domain aspects */
|
/* callback to fill driver specific domain aspects */
|
||||||
@ -20478,7 +20476,7 @@ virDomainObjParseNode(xmlDocPtr xml,
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
ctxt->node = root;
|
ctxt->node = root;
|
||||||
return virDomainObjParseXML(xml, ctxt, xmlopt, flags);
|
return virDomainObjParseXML(ctxt, xmlopt, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user