]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vmx: Remove unused variable in virVMXParseConfig
authorPeter Krempa <pkrempa@redhat.com>
Mon, 1 Apr 2019 15:23:16 +0000 (17:23 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 3 Apr 2019 14:51:02 +0000 (16:51 +0200)
'cpumasklen' is only written to since ee7d23ba4b4d487f8ac078c66b74.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/vmx/vmx.c

index 8ffd5ff08813895e85e6376c2d0017346df18504..429630faaf1e4914be66d07590d290810b5dc8d3 100644 (file)
@@ -1301,7 +1301,6 @@ virVMXParseConfig(virVMXContext *ctx,
     int unit;
     bool hgfs_disabled = true;
     long long sharedFolder_maxNum = 0;
-    int cpumasklen;
     struct virVMXConfigScanResults results = { -1 };
     long long coresPerSocket = 0;
     virCPUDefPtr cpu = NULL;
@@ -1504,8 +1503,6 @@ virVMXParseConfig(virVMXContext *ctx,
         const char *current = sched_cpu_affinity;
         int number, count = 0;
 
-        cpumasklen = 0;
-
         def->cpumask = virBitmapNew(VIR_DOMAIN_CPUMASK_LEN);
         if (!def->cpumask)
             goto cleanup;
@@ -1530,9 +1527,6 @@ virVMXParseConfig(virVMXContext *ctx,
                 goto cleanup;
             }
 
-            if (number + 1 > cpumasklen)
-                cpumasklen = number + 1;
-
             ignore_value(virBitmapSetBit(def->cpumask, number));
             ++count;