mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
21dd762de8
commit
e0b3e4e11c
@ -27765,12 +27765,6 @@ virDomainDefFormatFeatures(virBufferPtr buf,
|
||||
const char *name = virDomainFeatureTypeToString(i);
|
||||
size_t j;
|
||||
|
||||
if (!name) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("unexpected feature %zu"), i);
|
||||
goto error;
|
||||
}
|
||||
|
||||
switch ((virDomainFeature) i) {
|
||||
case VIR_DOMAIN_FEATURE_ACPI:
|
||||
case VIR_DOMAIN_FEATURE_PAE:
|
||||
|
Loading…
Reference in New Issue
Block a user