mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-15 09:57:25 +03:00
libxlDomainGetNumaParameters: Don't clear a freshly allocated bitmap
The bitmap is allocated just above the explicit clear, so it's already empty. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
e4b00827ed
commit
9566576c02
@ -4879,7 +4879,6 @@ libxlDomainGetNumaParameters(virDomainPtr dom,
|
||||
|
||||
/* First, we convert libxl_bitmap into virBitmap. After that,
|
||||
* we format virBitmap as a string that can be returned. */
|
||||
virBitmapClearAll(nodes);
|
||||
libxl_for_each_set_bit(j, nodemap) {
|
||||
if (virBitmapSetBit(nodes, j)) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
|
Loading…
x
Reference in New Issue
Block a user