From b56c9cc507cdfc473d6d0d1159f134dfd83a96df Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Sat, 16 Jul 2016 10:44:37 -0700 Subject: [PATCH] orchagent: Removing unnecessary conditions as has already been checked (#50) --- orchagent/intfsorch.cpp | 3 --- orchagent/neighorch.cpp | 3 --- orchagent/portsorch.cpp | 3 --- orchagent/routeorch.cpp | 3 --- 4 files changed, 12 deletions(-) diff --git a/orchagent/intfsorch.cpp b/orchagent/intfsorch.cpp index 995c9c0c8a..99391edaae 100644 --- a/orchagent/intfsorch.cpp +++ b/orchagent/intfsorch.cpp @@ -24,9 +24,6 @@ void IntfsOrch::doTask(Consumer &consumer) { SWSS_LOG_ENTER(); - if (consumer.m_toSync.empty()) - return; - if (!m_portsOrch->isInitDone()) return; diff --git a/orchagent/neighorch.cpp b/orchagent/neighorch.cpp index f5fcc67726..cac9b526a4 100644 --- a/orchagent/neighorch.cpp +++ b/orchagent/neighorch.cpp @@ -89,9 +89,6 @@ void NeighOrch::doTask(Consumer &consumer) { SWSS_LOG_ENTER(); - if (consumer.m_toSync.empty()) - return; - if (!m_portsOrch->isInitDone()) return; diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 5445296375..d0da8f98a5 100644 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -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) diff --git a/orchagent/routeorch.cpp b/orchagent/routeorch.cpp index 4b324c2b65..ddcb06f2d5 100644 --- a/orchagent/routeorch.cpp +++ b/orchagent/routeorch.cpp @@ -18,9 +18,6 @@ void RouteOrch::doTask(Consumer& consumer) { SWSS_LOG_ENTER(); - if (consumer.m_toSync.empty()) - return; - if (!m_portsOrch->isInitDone()) return;