mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
cpu_map: Remove unnecessary variable in loadData
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
af7ffa4834
commit
535b4a56d2
@ -43,7 +43,6 @@ loadData(const char *mapfile,
|
|||||||
g_autofree xmlNodePtr *nodes = NULL;
|
g_autofree xmlNodePtr *nodes = NULL;
|
||||||
int n;
|
int n;
|
||||||
size_t i;
|
size_t i;
|
||||||
int rv;
|
|
||||||
|
|
||||||
if ((n = virXPathNodeSet(element, ctxt, &nodes)) < 0)
|
if ((n = virXPathNodeSet(element, ctxt, &nodes)) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
@ -64,8 +63,7 @@ loadData(const char *mapfile,
|
|||||||
}
|
}
|
||||||
VIR_DEBUG("Load %s name %s", element, name);
|
VIR_DEBUG("Load %s name %s", element, name);
|
||||||
ctxt->node = nodes[i];
|
ctxt->node = nodes[i];
|
||||||
rv = callback(ctxt, name, data);
|
if (callback(ctxt, name, data) < 0)
|
||||||
if (rv < 0)
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user