Skip to content

Commit

Permalink
Fix CID 1395109 (Logically dead code)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Aug 22, 2018
1 parent ac17663 commit 6092a8f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/opencl/openclwrapper.cpp
Expand Up @@ -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;
}

Expand Down Expand Up @@ -2108,8 +2103,6 @@ static double composeRGBPixelMicroBench(GPUEnv* env,
pixDestroy(&pix);
}

// cleanup

return time;
}

Expand Down

0 comments on commit 6092a8f

Please sign in to comment.