Skip to content

Commit

Permalink
orchagent: Removing unnecessary conditions as has already been checked (
Browse files Browse the repository at this point in the history
  • Loading branch information
stcheng authored Jul 16, 2016
1 parent 87b7b36 commit b56c9cc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions orchagent/intfsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ void IntfsOrch::doTask(Consumer &consumer)
{
SWSS_LOG_ENTER();

if (consumer.m_toSync.empty())
return;

if (!m_portsOrch->isInitDone())
return;

Expand Down
3 changes: 0 additions & 3 deletions orchagent/neighorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ void NeighOrch::doTask(Consumer &consumer)
{
SWSS_LOG_ENTER();

if (consumer.m_toSync.empty())
return;

if (!m_portsOrch->isInitDone())
return;

Expand Down
3 changes: 0 additions & 3 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,6 @@ void PortsOrch::doTask(Consumer &consumer)
{
SWSS_LOG_ENTER();

if (consumer.m_toSync.empty())
return;

string table_name = consumer.m_consumer->getTableName();

if (table_name == APP_PORT_TABLE_NAME)
Expand Down
3 changes: 0 additions & 3 deletions orchagent/routeorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ void RouteOrch::doTask(Consumer& consumer)
{
SWSS_LOG_ENTER();

if (consumer.m_toSync.empty())
return;

if (!m_portsOrch->isInitDone())
return;

Expand Down

0 comments on commit b56c9cc

Please sign in to comment.