提交 0c20c909 编写于 作者: W Wang King 提交者: Cole Robinson

test: Remove unused variate @maxcpu in testDomainGetVcpus

Since refactoring by commit id '3dd859c0', @maxcpu is no longer used.

(cherry picked from commit b2641b43)
上级 3e790949
......@@ -2475,7 +2475,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;
......@@ -2501,10 +2501,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册