diff options
-rw-r--r-- | Redfish.md | 1 | ||||
-rw-r--r-- | redfish-core/lib/pcie.hpp | 12 |
2 files changed, 3 insertions, 10 deletions
diff --git a/Redfish.md b/Redfish.md index cd03a7ca86..3b5b7f8473 100644 --- a/Redfish.md +++ b/Redfish.md @@ -879,7 +879,6 @@ other. - Model - PartNumber - PCIeInterface - - DeviceType - LanesInUse - MaxLanes - MaxPCIeType diff --git a/redfish-core/lib/pcie.hpp b/redfish-core/lib/pcie.hpp index 195ec8727a..e442c8e3ae 100644 --- a/redfish-core/lib/pcie.hpp +++ b/redfish-core/lib/pcie.hpp @@ -416,16 +416,15 @@ inline void addPCIeDeviceProperties( const std::string& pcieDeviceId, const dbus::utility::DBusPropertiesMap& pcieDevProperties) { - const std::string* deviceType = nullptr; const std::string* generationInUse = nullptr; const std::string* generationSupported = nullptr; const size_t* lanesInUse = nullptr; const size_t* maxLanes = nullptr; const bool success = sdbusplus::unpackPropertiesNoThrow( - dbus_utils::UnpackErrorPrinter(), pcieDevProperties, "DeviceType", - deviceType, "GenerationInUse", generationInUse, "GenerationSupported", - generationSupported, "LanesInUse", lanesInUse, "MaxLanes", maxLanes); + dbus_utils::UnpackErrorPrinter(), pcieDevProperties, "GenerationInUse", + generationInUse, "GenerationSupported", generationSupported, + "LanesInUse", lanesInUse, "MaxLanes", maxLanes); if (!success) { @@ -433,11 +432,6 @@ inline void addPCIeDeviceProperties( return; } - if (deviceType != nullptr && !deviceType->empty()) - { - asyncResp->res.jsonValue["PCIeInterface"]["DeviceType"] = *deviceType; - } - if (generationInUse != nullptr) { std::optional<pcie_device::PCIeTypes> redfishGenerationInUse = |