From efaa7197b6661b8305f4c9ccb6ab943708fae833 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 28 May 2015 11:44:42 +0200 Subject: [PATCH] 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. --- src/libvirt-domain.c | 5 ----- 1 file changed, 5 deletions(-) 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); -- 2.47.2