From 69766d60896e429f27ac094010ae1f30ebbdc630 Mon Sep 17 00:00:00 2001 From: Anitha Raj Date: Tue, 21 Nov 2023 11:19:50 +0000 Subject: Revert "Fix various coverity issues" This reverts commit 26c68a0e5f555e316cab18352fa3b62f22af8bfb. Signed-off-by: Anitha Raj Change-Id: I3a71762d1fa8b0a97ebf21fa1c1e4da94d39e887 --- src/core/CL/CLMutableCommandBuffer.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/core/CL') diff --git a/src/core/CL/CLMutableCommandBuffer.cpp b/src/core/CL/CLMutableCommandBuffer.cpp index 0e078d8416..05b351fc25 100644 --- a/src/core/CL/CLMutableCommandBuffer.cpp +++ b/src/core/CL/CLMutableCommandBuffer.cpp @@ -26,7 +26,6 @@ #include "arm_compute/core/Error.h" -#include "src/common/utils/Log.h" #include "src/core/CL/CLUtils.h" namespace arm_compute @@ -49,11 +48,7 @@ CLMutableCommandBuffer::CLMutableCommandBuffer(cl_command_queue queue) : CLComma CLMutableCommandBuffer::~CLMutableCommandBuffer() { const auto status = clReleaseCommandBufferKHR(_cb); - if (status != CL_SUCCESS) - { - const std::string error_message = "clReleaseCommandBufferKHR - Error code: " + std::to_string(status); - ARM_COMPUTE_LOG_ERROR_ACL(error_message); - } + handle_cl_error("clReleaseCommandBufferKHR", status); } void CLMutableCommandBuffer::add_kernel(cl_kernel kernel, -- cgit v1.2.1