提交 c0dae62e 编写于 作者: P Peter Krempa

vmx: Remove unused variable in virVMXParseConfig

'cpumasklen' is only written to since ee7d23ba.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 1bb063f6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册