]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libxlDomainGetNumaParameters: Don't clear a freshly allocated bitmap
authorPeter Krempa <pkrempa@redhat.com>
Tue, 7 Dec 2021 15:18:24 +0000 (16:18 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 10 Dec 2021 15:36:25 +0000 (16:36 +0100)
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>
src/libxl/libxl_driver.c

index ef31f2cdcfb58db1b2badb6b8d89e1ca0c8150fc..bc8598ea96e68afff77df89170bb6d80b2af8762 100644 (file)
@@ -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,