From: Wang King Date: Thu, 13 Apr 2017 02:16:07 +0000 (+0800) Subject: test: Remove unused variate @maxcpu in testDomainGetVcpus X-Git-Tag: v3.3.0-rc1~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2641b43920917b17e3c10b6a9898c3ff1c82543;p=thirdparty%2Flibvirt.git test: Remove unused variate @maxcpu in testDomainGetVcpus Since refactoring by commit id '3dd859c0', @maxcpu is no longer used. --- diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 46ebdcc96f..919b265698 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -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;