[libvirt PATCH v2 5/8] cpu_map: Remove unnecessary variable in loadData

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 src/cpu/cpu_map.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/cpu/cpu_map.c b/src/cpu/cpu_map.c
index ac98a14e2e..3fa03e707c 100644
--- a/src/cpu/cpu_map.c
+++ b/src/cpu/cpu_map.c
@@ -43,7 +43,6 @@ loadData(const char *mapfile,
     g_autofree xmlNodePtr *nodes = NULL;
     int n;
     size_t i;
-    int rv;
 
     if ((n = virXPathNodeSet(element, ctxt, &nodes)) < 0)
         return -1;
@@ -64,8 +63,7 @@ loadData(const char *mapfile,
         }
         VIR_DEBUG("Load %s name %s", element, name);
         ctxt->node = nodes[i];
-        rv = callback(ctxt, name, data);
-        if (rv < 0)
+        if (callback(ctxt, name, data) < 0)
             return -1;
     }
 
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux