mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +00:00
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.
This commit is contained in:
parent
d53fa838e1
commit
5555dc0d7f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user