[libvirt PATCH 06/10] virPCIEDeviceInfoLinkParseXML: Remove unused parameter ctxt

Tim Wiederhake twiederh at redhat.com
Mon May 10 12:48:37 UTC 2021


Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
---
 src/conf/node_device_conf.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c
index ef09ed0a6f..34c8aa988e 100644
--- a/src/conf/node_device_conf.c
+++ b/src/conf/node_device_conf.c
@@ -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;
     }
 
-- 
2.26.3




More information about the libvir-list mailing list