提交 bd1bbd47 编写于 作者: J Ján Tomko

Simplify condition for formatting CPU features

Commit adff345e added support for features to MODE_HOSTPASSTHROUGH
as well. Since we support all modes now, the condition can be
eliminated.
上级 bc378060
...@@ -660,7 +660,6 @@ virCPUDefFormatBuf(virBufferPtr buf, ...@@ -660,7 +660,6 @@ virCPUDefFormatBuf(virBufferPtr buf,
virBufferAddLit(buf, "/>\n"); virBufferAddLit(buf, "/>\n");
} }
if (formatModel || def->mode == VIR_CPU_MODE_HOST_PASSTHROUGH) {
for (i = 0; i < def->nfeatures; i++) { for (i = 0; i < def->nfeatures; i++) {
virCPUFeatureDefPtr feature = def->features + i; virCPUFeatureDefPtr feature = def->features + i;
...@@ -687,7 +686,6 @@ virCPUDefFormatBuf(virBufferPtr buf, ...@@ -687,7 +686,6 @@ virCPUDefFormatBuf(virBufferPtr buf,
feature->name); feature->name);
} }
} }
}
if (def->ncells) { if (def->ncells) {
virBufferAddLit(buf, "<numa>\n"); virBufferAddLit(buf, "<numa>\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册