The 'fieldFormat' variable is guaranteed to have only the proper enum
values by virPCIVPDResourceGetFieldValueFormat.

Signed-off-by: Peter Krempa <[email protected]>
---
 src/util/virpcivpd.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/util/virpcivpd.c b/src/util/virpcivpd.c
index ba05014e40..25c4c2c5ec 100644
--- a/src/util/virpcivpd.c
+++ b/src/util/virpcivpd.c
@@ -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) {
-- 
2.43.0
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to