提交 efaa7197 编写于 作者: P Peter Krempa

lib: virDomainPinIOThread: Remove spurious overflow check

Internal structures use unsigned int, so there's no need for this legacy
check that was copied from the vCPU pinning api.
上级 fbbea798
......@@ -7906,11 +7906,6 @@ virDomainPinIOThread(virDomainPtr domain,
conn = domain->conn;
virCheckReadOnlyGoto(conn->flags, error);
if ((unsigned short) iothread_id != iothread_id) {
virReportError(VIR_ERR_OVERFLOW, _("input too large: %u"),
iothread_id);
goto error;
}
virCheckPositiveArgGoto(iothread_id, error);
virCheckNonNullArgGoto(cpumap, error);
virCheckPositiveArgGoto(maplen, error);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册