1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

vmx: Remove unused variable in virVMXParseConfig

'cpumasklen' is only written to since ee7d23ba4b.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2019-04-01 17:23:16 +02:00
parent 1bb063f69c
commit c0dae62e02

View 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;