Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/ch/ch_driver.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/ch/ch_driver.c b/src/ch/ch_driver.c
index 72fe3198b2..45cdbfd37c 100644
--- a/src/ch/ch_driver.c
+++ b/src/ch/ch_driver.c
@@ -1148,8 +1148,6 @@ chDomainPinVcpuLive(virDomainObj *vm,
virDomainVcpuDef *vcpuinfo;
virCHDomainObjPrivate *priv = vm->privateData;
- g_autofree char *str = NULL;
-
if (!virCHDomainHasVcpuPids(vm)) {
virReportError(VIR_ERR_OPERATION_INVALID,
"%s", _("cpu affinity is not supported"));
@@ -1166,9 +1164,6 @@ chDomainPinVcpuLive(virDomainObj *vm,
if (!(tmpmap = virBitmapNewCopy(cpumap)))
return -1;
- if (!(str = virBitmapFormat(cpumap)))
- return -1;
-
if (vcpuinfo->online) {
/* Configure the corresponding cpuset cgroup before set affinity. */
if (virCgroupHasController(priv->cgroup, VIR_CGROUP_CONTROLLER_CPUSET)) {
--
2.39.2