mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-26 15:14:42 +00:00
test: Remove unused variate @maxcpu in testDomainGetVcpus
Since refactoring by commit id '3dd859c0', @maxcpu is no longer used. (cherry picked from commit b2641b43920917b17e3c10b6a9898c3ff1c82543)
This commit is contained in:
parent
3e79094909
commit
0c20c9092c
@ -2475,7 +2475,7 @@ static int testDomainGetVcpus(virDomainPtr domain,
|
|||||||
virDomainObjPtr privdom;
|
virDomainObjPtr privdom;
|
||||||
virDomainDefPtr def;
|
virDomainDefPtr def;
|
||||||
size_t i;
|
size_t i;
|
||||||
int maxcpu, hostcpus;
|
int hostcpus;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
unsigned long long statbase;
|
unsigned long long statbase;
|
||||||
@ -2501,10 +2501,6 @@ static int testDomainGetVcpus(virDomainPtr domain,
|
|||||||
statbase = (tv.tv_sec * 1000UL * 1000UL) + tv.tv_usec;
|
statbase = (tv.tv_sec * 1000UL * 1000UL) + tv.tv_usec;
|
||||||
|
|
||||||
hostcpus = VIR_NODEINFO_MAXCPUS(privconn->nodeInfo);
|
hostcpus = VIR_NODEINFO_MAXCPUS(privconn->nodeInfo);
|
||||||
maxcpu = maplen * 8;
|
|
||||||
if (maxcpu > hostcpus)
|
|
||||||
maxcpu = hostcpus;
|
|
||||||
|
|
||||||
if (!(allcpumap = virBitmapNew(hostcpus)))
|
if (!(allcpumap = virBitmapNew(hostcpus)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user