Skip to content

Commit

Permalink
Fixed compilation failure with debug option (#1518)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenpiaoping authored Nov 26, 2020
1 parent 756dd9c commit d097260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3459,7 +3459,7 @@ bool PortsOrch::removeLagMember(Port &lag, Port &port)
bool PortsOrch::setCollectionOnLagMember(Port &lagMember, bool enableCollection)
{
/* Port must be LAG member */
assert(port.m_lag_member_id);
assert(lagMember.m_lag_member_id);

sai_status_t status = SAI_STATUS_FAILURE;
sai_attribute_t attr {};
Expand All @@ -3486,7 +3486,7 @@ bool PortsOrch::setCollectionOnLagMember(Port &lagMember, bool enableCollection)
bool PortsOrch::setDistributionOnLagMember(Port &lagMember, bool enableDistribution)
{
/* Port must be LAG member */
assert(port.m_lag_member_id);
assert(lagMember.m_lag_member_id);

sai_status_t status = SAI_STATUS_FAILURE;
sai_attribute_t attr {};
Expand Down

0 comments on commit d097260

Please sign in to comment.