Attempting to report error in case when we ran out of memory is
pointless.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
goto cleanup;
libxl_bitmap_init(&vcpu_bitmap);
- if (libxl_cpu_bitmap_alloc(ctx, &vcpu_bitmap, b_info->max_vcpus)) {
- virReportOOMError();
- goto cleanup;
- }
+ if (libxl_cpu_bitmap_alloc(ctx, &vcpu_bitmap, b_info->max_vcpus))
+ abort();
do {
libxl_bitmap_set(&vcpu_bitmap, cpu);
if (numnodes <= 0)
goto cleanup;
- if (libxl_node_bitmap_alloc(cfg->ctx, &nodemap, 0)) {
- virReportOOMError();
- goto cleanup;
- }
+ if (libxl_node_bitmap_alloc(cfg->ctx, &nodemap, 0))
+ abort();
+
nodes = virBitmapNew(numnodes);
rc = libxl_domain_get_nodeaffinity(cfg->ctx,