]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Remove a few unused variables in domain_conf
authorJohn Ferlan <jferlan@redhat.com>
Wed, 20 Feb 2019 16:18:28 +0000 (11:18 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 4 Mar 2019 12:09:06 +0000 (07:09 -0500)
In preparation for VIR_AUTOFREE usage, let's remove a couple
of unused variables so that clang compilations won't fail.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/conf/domain_conf.c

index 30d678c8d9a09e774ee699e36d88f522a478643f..cbaa32e174593fd8c022c76195f27edcb4503c76 100644 (file)
@@ -7137,7 +7137,6 @@ virDomainDeviceInfoParseXML(virDomainXMLOptionPtr xmlopt ATTRIBUTE_UNUSED,
     xmlNodePtr alias = NULL;
     xmlNodePtr boot = NULL;
     xmlNodePtr rom = NULL;
-    char *type = NULL;
     char *romenabled = NULL;
     char *rombar = NULL;
     char *aliasStr = NULL;
@@ -7223,7 +7222,6 @@ virDomainDeviceInfoParseXML(virDomainXMLOptionPtr xmlopt ATTRIBUTE_UNUSED,
  cleanup:
     if (ret < 0)
         virDomainDeviceInfoClear(info);
-    VIR_FREE(type);
     VIR_FREE(rombar);
     VIR_FREE(romenabled);
     VIR_FREE(aliasStr);
@@ -13011,7 +13009,6 @@ virDomainTPMDefParseXML(virDomainXMLOptionPtr xmlopt,
                         xmlXPathContextPtr ctxt,
                         unsigned int flags)
 {
-    char *type = NULL;
     char *path = NULL;
     char *model = NULL;
     char *backend = NULL;
@@ -13092,7 +13089,6 @@ virDomainTPMDefParseXML(virDomainXMLOptionPtr xmlopt,
         goto error;
 
  cleanup:
-    VIR_FREE(type);
     VIR_FREE(path);
     VIR_FREE(model);
     VIR_FREE(backend);
@@ -18547,7 +18543,7 @@ virDomainHugepagesParseXML(xmlNodePtr node,
 {
     int ret = -1;
     xmlNodePtr oldnode = ctxt->node;
-    char *unit = NULL, *nodeset = NULL;
+    char *nodeset = NULL;
 
     ctxt->node = node;
 
@@ -18575,7 +18571,6 @@ virDomainHugepagesParseXML(xmlNodePtr node,
 
     ret = 0;
  cleanup:
-    VIR_FREE(unit);
     VIR_FREE(nodeset);
     ctxt->node = oldnode;
     return ret;