[PATCH 19/35] lib: virDomainPinIOThread: Remove spurious overflow check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 05990c7..7e6d749 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.4.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]