提交 5555dc0d 编写于 作者: P Peter Krempa

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.
上级 d53fa838
...@@ -1004,12 +1004,7 @@ virNumaGetHostNodeset(void) ...@@ -1004,12 +1004,7 @@ virNumaGetHostNodeset(void)
if (!virNumaNodeIsAvailable(i)) if (!virNumaNodeIsAvailable(i))
continue; continue;
if (virBitmapSetBit(nodeset, i) < 0) { ignore_value(virBitmapSetBit(nodeset, i));
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Problem setting bit in bitmap"));
virBitmapFree(nodeset);
return NULL;
}
} }
return nodeset; return nodeset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册