Skip to content

Commit

Permalink
[hash]: Handle review comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
  • Loading branch information
nazariig committed Apr 26, 2023
1 parent d803b92 commit 021cc2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/switch/swcap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ sai_status_t SwitchCapabilities::queryEnumCapabilitiesSai(std::vector<sai_int32_
sai_s32_list_t enumList = { .count = 0, .list = nullptr };

auto status = sai_query_attribute_enum_values_capability(gSwitchId, objType, attrId, &enumList);
if (status != SAI_STATUS_BUFFER_OVERFLOW)
if ((status != SAI_STATUS_SUCCESS) && (status != SAI_STATUS_BUFFER_OVERFLOW))
{
return status;
}
Expand Down

0 comments on commit 021cc2c

Please sign in to comment.