mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
virDomainFeaturesKVMDefParse: Remove tautological "switch"
`feature` is always one of the values listed in the switch, ensured by `virDomainKVMTypeFromString` above. Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
3c5e607b24
commit
e2bce45829
@ -17418,21 +17418,11 @@ virDomainFeaturesKVMDefParse(virDomainDef *def,
|
||||
return -1;
|
||||
}
|
||||
|
||||
switch ((virDomainKVM) feature) {
|
||||
case VIR_DOMAIN_KVM_HIDDEN:
|
||||
case VIR_DOMAIN_KVM_DEDICATED:
|
||||
case VIR_DOMAIN_KVM_POLLCONTROL:
|
||||
if (virXMLPropTristateSwitch(node, "state",
|
||||
VIR_XML_PROP_REQUIRED,
|
||||
&value) < 0)
|
||||
return -1;
|
||||
if (virXMLPropTristateSwitch(node, "state", VIR_XML_PROP_REQUIRED,
|
||||
&value) < 0)
|
||||
return -1;
|
||||
|
||||
def->kvm_features[feature] = value;
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_KVM_LAST:
|
||||
break;
|
||||
}
|
||||
def->kvm_features[feature] = value;
|
||||
|
||||
node = xmlNextElementSibling(node);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user