]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
lib: virDomainPinIOThread: Remove spurious overflow check
authorPeter Krempa <pkrempa@redhat.com>
Thu, 28 May 2015 09:44:42 +0000 (11:44 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 4 Jun 2015 08:52:31 +0000 (10:52 +0200)
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

index 05990c7a68523988cb58c91fdc4af02903ae5e9b..7e6d749be958ef62583e9bea1c33049e0ca9ac9a 100644 (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);