Skip to content

Commit

Permalink
Fix obvious syntax errors (sonic-net#1262)
Browse files Browse the repository at this point in the history
* Fix obvious syntax errors
* Remove unused var
  • Loading branch information
qiluo-msft authored Apr 20, 2020
1 parent 93d584d commit 3c8289b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion orchagent/chassisorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ void ChassisOrch::doTask(Consumer &consumer)
{
SWSS_LOG_ENTER();

const std::string & tableName = consumer.getTableName();
auto it = consumer.m_toSync.begin();
while (it != consumer.m_toSync.end())
{
Expand Down
1 change: 1 addition & 0 deletions orchagent/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ extern "C" {
#include <vector>
#include <map>
#include <bitset>
#include <unordered_set>

#define DEFAULT_PORT_VLAN_ID 1
/*
Expand Down
4 changes: 2 additions & 2 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3572,7 +3572,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 @@ -3595,7 +3595,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 3c8289b

Please sign in to comment.