From: Tim Wiederhake Date: Fri, 11 Sep 2020 13:22:46 +0000 (+0200) Subject: cpu_map: Remove unnecessary variable in loadData X-Git-Tag: v6.8.0-rc1~203 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=535b4a56d2c499bb43920a9af524dc5d5e012dfd;p=thirdparty%2Flibvirt.git cpu_map: Remove unnecessary variable in loadData Signed-off-by: Tim Wiederhake Reviewed-by: Ján Tomko Signed-off-by: Ján Tomko --- diff --git a/src/cpu/cpu_map.c b/src/cpu/cpu_map.c index 743547c6d1..6baaa77776 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; }