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 <[email protected]>
  • Loading branch information
nazariig committed May 9, 2023
1 parent 5a0a911 commit a9ce172
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 a9ce172

Please sign in to comment.