]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
test: Remove unused variate @maxcpu in testDomainGetVcpus
authorWang King <king.wang@huawei.com>
Thu, 13 Apr 2017 02:16:07 +0000 (10:16 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 13 Apr 2017 12:14:54 +0000 (08:14 -0400)
Since refactoring by commit id '3dd859c0', @maxcpu is no longer used.

src/test/test_driver.c

index 46ebdcc96f1c06436c2adf6d0a6d2c1fb0408186..919b26569875b2714366801098de9cb9eb15de97 100644 (file)
@@ -2467,7 +2467,7 @@ static int testDomainGetVcpus(virDomainPtr domain,
     virDomainObjPtr privdom;
     virDomainDefPtr def;
     size_t i;
-    int maxcpu, hostcpus;
+    int hostcpus;
     int ret = -1;
     struct timeval tv;
     unsigned long long statbase;
@@ -2493,10 +2493,6 @@ static int testDomainGetVcpus(virDomainPtr domain,
     statbase = (tv.tv_sec * 1000UL * 1000UL) + tv.tv_usec;
 
     hostcpus = VIR_NODEINFO_MAXCPUS(privconn->nodeInfo);
-    maxcpu = maplen * 8;
-    if (maxcpu > hostcpus)
-        maxcpu = hostcpus;
-
     if (!(allcpumap = virBitmapNew(hostcpus)))
         goto cleanup;