From: Peter Krempa Date: Thu, 28 May 2015 09:44:42 +0000 (+0200) Subject: lib: virDomainPinIOThread: Remove spurious overflow check X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=efaa7197b6661b8305f4c9ccb6ab943708fae833;p=libvirt.git 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. --- diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index 05990c7a68..7e6d749be9 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -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);