From 85e74c29064c96ed04531a5b5af68a0de8548e8c Mon Sep 17 00:00:00 2001 From: Shi Su Date: Wed, 23 Jun 2021 19:18:48 +0000 Subject: [PATCH] Undo a few changes --- orchagent/crmorch.cpp | 6 +----- orchagent/natorch.cpp | 1 - orchagent/portsorch.cpp | 6 +----- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/orchagent/crmorch.cpp b/orchagent/crmorch.cpp index 73b7db349af..28d60ceb339 100644 --- a/orchagent/crmorch.cpp +++ b/orchagent/crmorch.cpp @@ -535,11 +535,7 @@ void CrmOrch::getResAvailableCounters() if (status != SAI_STATUS_SUCCESS) { SWSS_LOG_ERROR("Failed to get ACL table attribute %u , rv:%d", attr.id, status); - task_process_status handle_status = handleSaiGetStatus(SAI_API_ACL, status); - if (handle_status != task_process_status::task_success) - { - break; - } + break; } cnt.second.availableCounter = attr.value.u32; diff --git a/orchagent/natorch.cpp b/orchagent/natorch.cpp index 58881508f88..fbe41555717 100644 --- a/orchagent/natorch.cpp +++ b/orchagent/natorch.cpp @@ -3599,7 +3599,6 @@ bool NatOrch::getNatCounters(const NatEntry::iterator &iter) { SWSS_LOG_ERROR("Failed to get Counters for SNAT entry [src-ip %s], bytes = %" PRIu64 ", pkts = %" PRIu64 "", ipAddr.to_string().c_str(), nat_entry_attr[0].value.u64, nat_entry_attr[1].value.u64); - handleSaiGetStatus(SAI_API_NAT, status); } else { diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 89954340359..d93feb5a6d4 100755 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -5501,11 +5501,7 @@ void PortsOrch::removePortSerdesAttribute(sai_object_id_t port_id) { SWSS_LOG_DEBUG("Failed to get port attr serdes id %d to port pid:0x%" PRIx64, port_attr.id, port_id); - task_process_status handle_status = handleSaiGetStatus(SAI_API_PORT, status); - if (handle_status != task_process_status::task_success) - { - return; - } + return; } if (port_attr.value.oid != SAI_NULL_OBJECT_ID)