Simplify condition for formatting CPU features

Commit adff345 added support for features to MODE_HOSTPASSTHROUGH
as well. Since we support all modes now, the condition can be
eliminated.
This commit is contained in:
Ján Tomko 2015-01-15 12:49:13 +01:00
parent bc378060f7
commit bd1bbd4710

View File

@ -660,7 +660,6 @@ virCPUDefFormatBuf(virBufferPtr buf,
virBufferAddLit(buf, "/>\n");
}
if (formatModel || def->mode == VIR_CPU_MODE_HOST_PASSTHROUGH) {
for (i = 0; i < def->nfeatures; i++) {
virCPUFeatureDefPtr feature = def->features + i;
@ -687,7 +686,6 @@ virCPUDefFormatBuf(virBufferPtr buf,
feature->name);
}
}
}
if (def->ncells) {
virBufferAddLit(buf, "<numa>\n");