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

conf: Remove impossible error in virDomainDefFormatFeatures

'i' is always in range of the enum, thus the name is always populated by
virDomainFeatureTypeToString.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 21dd762d
...@@ -27765,12 +27765,6 @@ virDomainDefFormatFeatures(virBufferPtr buf, ...@@ -27765,12 +27765,6 @@ virDomainDefFormatFeatures(virBufferPtr buf,
const char *name = virDomainFeatureTypeToString(i); const char *name = virDomainFeatureTypeToString(i);
size_t j; size_t j;
if (!name) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("unexpected feature %zu"), i);
goto error;
}
switch ((virDomainFeature) i) { switch ((virDomainFeature) i) {
case VIR_DOMAIN_FEATURE_ACPI: case VIR_DOMAIN_FEATURE_ACPI:
case VIR_DOMAIN_FEATURE_PAE: case VIR_DOMAIN_FEATURE_PAE:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册