mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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:
parent
c5678110df
commit
23fd37d025
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user