mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-10 07:20:02 +00:00
virPCIVPDParseVPDLargeResourceFields: Remove impossible 'default' switch case
The 'fieldFormat' variable is guaranteed to have only the proper enum values by virPCIVPDResourceGetFieldValueFormat. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
037803a949
commit
f1deac9635
@ -470,9 +470,6 @@ virPCIVPDParseVPDLargeResourceFields(int vpdFileFd, uint16_t resPos, uint16_t re
|
||||
VIR_DEBUG("Could not determine a field value format for keyword: %s", fieldKeyword);
|
||||
bytesToRead = fieldDataLen;
|
||||
break;
|
||||
default:
|
||||
VIR_INFO("Unexpected field value format encountered.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (resPos + resDataLen < fieldPos + fieldDataLen) {
|
||||
|
Loading…
Reference in New Issue
Block a user