]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virPCIEDeviceInfoLinkParseXML: Remove unused parameter ctxt
authorTim Wiederhake <twiederh@redhat.com>
Mon, 10 May 2021 12:48:37 +0000 (14:48 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 11 May 2021 12:04:00 +0000 (14:04 +0200)
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/node_device_conf.c

index ef09ed0a6f99185493e1d89bac0169fc046225a8..34c8aa988e5591320e0219ad3327536e57f5ea49 100644 (file)
@@ -1596,12 +1596,9 @@ virNodeDevCapPCIDevIommuGroupParseXML(xmlXPathContextPtr ctxt,
 
 
 static int
-virPCIEDeviceInfoLinkParseXML(xmlXPathContextPtr ctxt,
-                              xmlNodePtr linkNode,
+virPCIEDeviceInfoLinkParseXML(xmlNodePtr linkNode,
                               virPCIELink *lnk)
 {
-    VIR_XPATH_NODE_AUTORESTORE(ctxt)
-
     if (virXMLPropUInt(linkNode, "width", 0, VIR_XML_PROP_REQUIRED, &lnk->width) < 0)
         return -1;
 
@@ -1629,16 +1626,14 @@ virPCIEDeviceInfoParseXML(xmlXPathContextPtr ctxt,
     if ((lnk = virXPathNode("./link[@validity='cap']", ctxt))) {
         pci_express->link_cap = g_new0(virPCIELink, 1);
 
-        if (virPCIEDeviceInfoLinkParseXML(ctxt, lnk,
-                                          pci_express->link_cap) < 0)
+        if (virPCIEDeviceInfoLinkParseXML(lnk, pci_express->link_cap) < 0)
             return -1;
     }
 
     if ((lnk = virXPathNode("./link[@validity='sta']", ctxt))) {
         pci_express->link_sta = g_new0(virPCIELink, 1);
 
-        if (virPCIEDeviceInfoLinkParseXML(ctxt, lnk,
-                                          pci_express->link_sta) < 0)
+        if (virPCIEDeviceInfoLinkParseXML(lnk, pci_express->link_sta) < 0)
             return -1;
     }