Fix CID 1395109 (Logically dead code)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-08-21 18:18:04 +02:00
parent ac17663015
commit 6092a8f865

View File

@ -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;
}