[libvirt PATCH 3/4] ch: pinVcpuLive: remove unused variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux