diff --git a/orchagent/crmorch.cpp b/orchagent/crmorch.cpp index 73b7db349a..28d60ceb33 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 58881508f8..fbe4155571 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 8995434035..d93feb5a6d 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)