aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTang Chen <tangchen@cn.fujitsu.com>2012-09-21 17:50:10 +0800
committerEric Blake <eblake@redhat.com>2012-09-21 12:49:47 -0600
commit9ce64e6aae43bfc313c7e9e920d28f4d9218cd59 (patch)
treef7ab1815ad2ee43838eb5a0e117489924d80bc3b /src
parentAdd <seclabel> to character devices. (diff)
downloadlibvirt-9ce64e6aae43bfc313c7e9e920d28f4d9218cd59.tar.gz
libvirt-9ce64e6aae43bfc313c7e9e920d28f4d9218cd59.tar.bz2
libvirt-9ce64e6aae43bfc313c7e9e920d28f4d9218cd59.zip
Remove redundant lines in src/qemu/qemu_driver.c
maxcpu and hostcpus are defined and calculated in qemudDomainPinVcpuFlags() and qemudDomainPinEmulator(), but never used. So remove them including nodeinfo. Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Diffstat (limited to 'src')
-rw-r--r--src/qemu/qemu_driver.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 500ba75cb..684892452 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -3712,8 +3712,6 @@ qemudDomainPinVcpuFlags(virDomainPtr dom,
virDomainDefPtr persistentDef = NULL;
virCgroupPtr cgroup_dom = NULL;
virCgroupPtr cgroup_vcpu = NULL;
- int maxcpu, hostcpus;
- virNodeInfo nodeinfo;
int ret = -1;
qemuDomainObjPrivatePtr priv;
bool doReset = false;
@@ -3749,13 +3747,6 @@ qemudDomainPinVcpuFlags(virDomainPtr dom,
goto cleanup;
}
- if (nodeGetInfo(dom->conn, &nodeinfo) < 0)
- goto cleanup;
- hostcpus = VIR_NODEINFO_MAXCPUS(nodeinfo);
- maxcpu = maplen * 8;
- if (maxcpu > hostcpus)
- maxcpu = hostcpus;
-
pcpumap = virBitmapNewData(cpumap, maplen);
if (!pcpumap)
goto cleanup;
@@ -3995,8 +3986,6 @@ qemudDomainPinEmulator(virDomainPtr dom,
virCgroupPtr cgroup_emulator = NULL;
pid_t pid;
virDomainDefPtr persistentDef = NULL;
- int maxcpu, hostcpus;
- virNodeInfo nodeinfo;
int ret = -1;
qemuDomainObjPrivatePtr priv;
bool doReset = false;
@@ -4025,13 +4014,6 @@ qemudDomainPinEmulator(virDomainPtr dom,
priv = vm->privateData;
- if (nodeGetInfo(dom->conn, &nodeinfo) < 0)
- goto cleanup;
- hostcpus = VIR_NODEINFO_MAXCPUS(nodeinfo);
- maxcpu = maplen * 8;
- if (maxcpu > hostcpus)
- maxcpu = hostcpus;
-
pcpumap = virBitmapNewData(cpumap, maplen);
if (!pcpumap)
goto cleanup;