From 5555dc0d7fe0267e2ff6e5a9625164f2896f9cc5 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 13 Sep 2016 14:28:33 +0200 Subject: [PATCH] util: numa: Remove impossible error handling The code guarantees that virBitmapSetBit won't be called with out of range values. Just ignore the return value and remove dead error handling. --- src/util/virnuma.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/util/virnuma.c b/src/util/virnuma.c index fc25051b46..c4d11fa6e0 100644 --- a/src/util/virnuma.c +++ b/src/util/virnuma.c @@ -1004,12 +1004,7 @@ virNumaGetHostNodeset(void) if (!virNumaNodeIsAvailable(i)) continue; - if (virBitmapSetBit(nodeset, i) < 0) { - virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Problem setting bit in bitmap")); - virBitmapFree(nodeset); - return NULL; - } + ignore_value(virBitmapSetBit(nodeset, i)); } return nodeset; -- GitLab