From 6106327b23728d3db555726239f2b6d0f6d0702e Mon Sep 17 00:00:00 2001 From: Kristina Hanicova Date: Wed, 11 Aug 2021 14:36:47 +0200 Subject: [PATCH] domain_conf: Remove redundant variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xmlDocPtr is no longer needed, because validation against schema was moved to another function. Signed-off-by: Kristina Hanicova Reviewed-by: Ján Tomko Signed-off-by: Ján Tomko --- src/conf/domain_conf.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 492d5524ec..16cbb7d0c3 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -19515,8 +19515,7 @@ virDomainDefControllersParse(virDomainDef *def, } static virDomainDef * -virDomainDefParseXML(xmlDocPtr xml G_GNUC_UNUSED, - xmlXPathContextPtr ctxt, +virDomainDefParseXML(xmlXPathContextPtr ctxt, virDomainXMLOption *xmlopt, unsigned int flags) { @@ -20281,8 +20280,7 @@ virDomainDefParseXML(xmlDocPtr xml G_GNUC_UNUSED, static virDomainObj * -virDomainObjParseXML(xmlDocPtr xml, - xmlXPathContextPtr ctxt, +virDomainObjParseXML(xmlXPathContextPtr ctxt, virDomainXMLOption *xmlopt, unsigned int flags) { @@ -20310,7 +20308,7 @@ virDomainObjParseXML(xmlDocPtr xml, oldnode = ctxt->node; ctxt->node = config; - obj->def = virDomainDefParseXML(xml, ctxt, xmlopt, flags); + obj->def = virDomainDefParseXML(ctxt, xmlopt, flags); ctxt->node = oldnode; if (!obj->def) return NULL; @@ -20443,7 +20441,7 @@ virDomainDefParseNode(xmlDocPtr xml, ctxt->node = root; - if (!(def = virDomainDefParseXML(xml, ctxt, xmlopt, flags))) + if (!(def = virDomainDefParseXML(ctxt, xmlopt, flags))) return NULL; /* callback to fill driver specific domain aspects */ @@ -20478,7 +20476,7 @@ virDomainObjParseNode(xmlDocPtr xml, return NULL; ctxt->node = root; - return virDomainObjParseXML(xml, ctxt, xmlopt, flags); + return virDomainObjParseXML(ctxt, xmlopt, flags); }