diff --git a/libpldmresponder/bios_config.cpp b/libpldmresponder/bios_config.cpp
index a6adca8..ff3a97f 100644
--- a/libpldmresponder/bios_config.cpp
+++ b/libpldmresponder/bios_config.cpp
@@ -222,8 +222,7 @@
             {
                 uint8_t pvNum;
                 // Preconditions are upheld therefore no error check necessary
-                pldm_bios_table_attr_entry_enum_decode_pv_num_check(entry,
-                                                                    &pvNum);
+                pldm_bios_table_attr_entry_enum_decode_pv_num(entry, &pvNum);
                 std::vector<uint16_t> pvHandls(pvNum);
                 // Preconditions are upheld therefore no error check necessary
                 pldm_bios_table_attr_entry_enum_decode_pv_hdls_check(
@@ -375,8 +374,8 @@
 
                 uint8_t pvNum;
                 // Preconditions are upheld therefore no error check necessary
-                pldm_bios_table_attr_entry_enum_decode_pv_num_check(attrEntry,
-                                                                    &pvNum);
+                pldm_bios_table_attr_entry_enum_decode_pv_num(attrEntry,
+                                                              &pvNum);
                 std::vector<uint16_t> pvHandls(pvNum);
                 // Preconditions are upheld therefore no error check necessary
                 pldm_bios_table_attr_entry_enum_decode_pv_hdls_check(
@@ -732,8 +731,7 @@
     auto attrEntry = pldm_bios_table_attr_find_by_handle(
         attrTable->data(), attrTable->size(), handle);
     uint8_t pvNum;
-    int rc = pldm_bios_table_attr_entry_enum_decode_pv_num_check(attrEntry,
-                                                                 &pvNum);
+    int rc = pldm_bios_table_attr_entry_enum_decode_pv_num(attrEntry, &pvNum);
     if (rc != PLDM_SUCCESS)
     {
         error(
diff --git a/libpldmresponder/bios_table.cpp b/libpldmresponder/bios_table.cpp
index b02fd56..158905c 100644
--- a/libpldmresponder/bios_table.cpp
+++ b/libpldmresponder/bios_table.cpp
@@ -240,7 +240,7 @@
 EnumField decodeEnumEntry(const pldm_bios_attr_table_entry* entry)
 {
     uint8_t pvNum;
-    int rc = pldm_bios_table_attr_entry_enum_decode_pv_num_check(entry, &pvNum);
+    int rc = pldm_bios_table_attr_entry_enum_decode_pv_num(entry, &pvNum);
     if (rc != PLDM_SUCCESS)
     {
         error(
diff --git a/pldmtool/pldm_bios_cmd.cpp b/pldmtool/pldm_bios_cmd.cpp
index 1e1a7a7..feebf42 100644
--- a/pldmtool/pldm_bios_cmd.cpp
+++ b/pldmtool/pldm_bios_cmd.cpp
@@ -334,8 +334,8 @@
             return displayString;
         }
         uint8_t pvNum;
-        int rc = pldm_bios_table_attr_entry_enum_decode_pv_num_check(attrEntry,
-                                                                     &pvNum);
+        int rc = pldm_bios_table_attr_entry_enum_decode_pv_num(attrEntry,
+                                                               &pvNum);
         if (rc != PLDM_SUCCESS)
         {
             return displayString;
@@ -558,8 +558,8 @@
                     uint8_t pvNum;
                     // Preconditions are upheld therefore no error check
                     // necessary
-                    pldm_bios_table_attr_entry_enum_decode_pv_num_check(entry,
-                                                                        &pvNum);
+                    pldm_bios_table_attr_entry_enum_decode_pv_num(entry,
+                                                                  &pvNum);
                     std::vector<uint16_t> pvHandls(pvNum);
                     // Preconditions are upheld therefore no error check
                     // necessary
@@ -820,8 +820,8 @@
                     pldm_bios_table_attr_value_entry_encode_enum_length(1);
                 uint8_t pvNum;
                 // Preconditions are upheld therefore no error check necessary
-                pldm_bios_table_attr_entry_enum_decode_pv_num_check(attrEntry,
-                                                                    &pvNum);
+                pldm_bios_table_attr_entry_enum_decode_pv_num(attrEntry,
+                                                              &pvNum);
                 std::vector<uint16_t> pvHdls(pvNum, 0);
                 // Preconditions are upheld therefore no error check necessary
                 pldm_bios_table_attr_entry_enum_decode_pv_hdls_check(
