mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 03:21:19 +00: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,
|
/* First, we convert libxl_bitmap into virBitmap. After that,
|
||||||
* we format virBitmap as a string that can be returned. */
|
* we format virBitmap as a string that can be returned. */
|
||||||
virBitmapClearAll(nodes);
|
|
||||||
libxl_for_each_set_bit(j, nodemap) {
|
libxl_for_each_set_bit(j, nodemap) {
|
||||||
if (virBitmapSetBit(nodes, j)) {
|
if (virBitmapSetBit(nodes, j)) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user