mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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:
parent
fbbea79890
commit
efaa7197b6
@ -7906,11 +7906,6 @@ virDomainPinIOThread(virDomainPtr domain,
|
|||||||
conn = domain->conn;
|
conn = domain->conn;
|
||||||
|
|
||||||
virCheckReadOnlyGoto(conn->flags, error);
|
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);
|
virCheckPositiveArgGoto(iothread_id, error);
|
||||||
virCheckNonNullArgGoto(cpumap, error);
|
virCheckNonNullArgGoto(cpumap, error);
|
||||||
virCheckPositiveArgGoto(maplen, error);
|
virCheckPositiveArgGoto(maplen, error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user