pldm: Move off pldm_bios_table_attr_entry_enum_decode_pv_num_check()
Generated with:
```
$ CLANG_VERSION=18 ./subprojects/libpldm/scripts/apply-renames ./subprojects/libpldm/evolutions/current/pldm_bios_table_attr_entry_enum_decode_pv_num_check.yaml
```
Change-Id: I749ac6dd0423a82e16dc1a6d35bfec5a9041b565
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
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(