conf: virDomainDiskDefDriverParseXML: Drop unused XPath infrastructure

The function doesn't use XPath at all. Don't pass the context to it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2023-02-23 16:05:42 +01:00
parent c5678110df
commit 23fd37d025

View File

@ -7754,13 +7754,8 @@ virDomainDiskDefGeometryParse(virDomainDiskDef *def,
static int
virDomainDiskDefDriverParseXML(virDomainDiskDef *def,
xmlNodePtr cur,
xmlXPathContextPtr ctxt)
xmlNodePtr cur)
{
VIR_XPATH_NODE_AUTORESTORE(ctxt)
ctxt->node = cur;
def->driverName = virXMLPropString(cur, "name");
if (virXMLPropEnum(cur, "cache", virDomainDiskCacheTypeFromString,
@ -8048,7 +8043,7 @@ virDomainDiskDefParseXML(virDomainXMLOption *xmlopt,
if (virDomainVirtioOptionsParseXML(driverNode, &def->virtio) < 0)
return NULL;
if (virDomainDiskDefDriverParseXML(def, driverNode, ctxt) < 0)
if (virDomainDiskDefDriverParseXML(def, driverNode) < 0)
return NULL;
if (virDomainDiskDefDriverSourceParseXML(def->src, driverNode, ctxt) < 0)