提交 b2641b43 编写于 作者: W Wang King 提交者: John Ferlan

test: Remove unused variate @maxcpu in testDomainGetVcpus

Since refactoring by commit id '3dd859c0', @maxcpu is no longer used.
上级 d76267b2
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册