Skip to content

Commit b56c9cc

Browse files
authored
orchagent: Removing unnecessary conditions as has already been checked (sonic-net#50)
1 parent 87b7b36 commit b56c9cc

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

orchagent/intfsorch.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ void IntfsOrch::doTask(Consumer &consumer)
2424
{
2525
SWSS_LOG_ENTER();
2626

27-
if (consumer.m_toSync.empty())
28-
return;
29-
3027
if (!m_portsOrch->isInitDone())
3128
return;
3229

orchagent/neighorch.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ void NeighOrch::doTask(Consumer &consumer)
8989
{
9090
SWSS_LOG_ENTER();
9191

92-
if (consumer.m_toSync.empty())
93-
return;
94-
9592
if (!m_portsOrch->isInitDone())
9693
return;
9794

orchagent/portsorch.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,6 @@ void PortsOrch::doTask(Consumer &consumer)
534534
{
535535
SWSS_LOG_ENTER();
536536

537-
if (consumer.m_toSync.empty())
538-
return;
539-
540537
string table_name = consumer.m_consumer->getTableName();
541538

542539
if (table_name == APP_PORT_TABLE_NAME)

orchagent/routeorch.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ void RouteOrch::doTask(Consumer& consumer)
1818
{
1919
SWSS_LOG_ENTER();
2020

21-
if (consumer.m_toSync.empty())
22-
return;
23-
2421
if (!m_portsOrch->isInitDone())
2522
return;
2623

0 commit comments

Comments
 (0)