From 6092a8f86577facefcbbb2afc37c43f063374399 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 21 Aug 2018 18:18:04 +0200 Subject: [PATCH] Fix CID 1395109 (Logically dead code) Signed-off-by: Stefan Weil --- src/opencl/openclwrapper.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/opencl/openclwrapper.cpp b/src/opencl/openclwrapper.cpp index 69858c30f1..8483cfc3e3 100644 --- a/src/opencl/openclwrapper.cpp +++ b/src/opencl/openclwrapper.cpp @@ -196,12 +196,7 @@ static ds_status initDSProfile(ds_profile** p, const char* version) { profile->devices[next].type = DS_DEVICE_NATIVE_CPU; profile->version = version; -cleanup: - if (status == DS_SUCCESS) { - *p = profile; - } else { - delete profile; - } + *p = profile; return status; } @@ -2108,8 +2103,6 @@ static double composeRGBPixelMicroBench(GPUEnv* env, pixDestroy(&pix); } - // cleanup - return time; }