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.
This commit is contained in:
Peter Krempa 2015-05-28 11:44:42 +02:00
parent fbbea79890
commit efaa7197b6

View File

@ -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);