diff options
author | Lakshmi Yadlapati <lakshmiy@us.ibm.com> | 2023-06-27 10:36:53 +0300 |
---|---|---|
committer | Lakshmi Yadlapati <lakshmiy@us.ibm.com> | 2023-06-30 23:01:05 +0300 |
commit | cf3b484e14fe9754c1812d9871d77b5b1ac9f620 (patch) | |
tree | ca10a8862e24439ef3cb65374dce29f12b37a684 /Redfish.md | |
parent | c05bba459941ae17aa9508529ccd0284e5300213 (diff) | |
download | bmcweb-cf3b484e14fe9754c1812d9871d77b5b1ac9f620.tar.xz |
Refactor redfishPcieGenerationFromDbus and redfishSlotType
This commit refactors the redfishPcieGenerationFromDbus and
redfishSlotType functions by changing their return types. The return
value std::nullopt indicates that there is no output, while the return
value pcie_device::PCIeTypes::Invalid indicates that the input was
invalid and returns an internal error. Additionally, the code that calls
these functions has been updated to accommodate the changes.
Tested: Validator passed
Change-Id: I3f7c1a3c8c6b53fd9a39928e3ad9a5fed9be97ff
Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com>
Diffstat (limited to 'Redfish.md')
0 files changed, 0 insertions, 0 deletions