Remove redundant cast.

Change-Id: I72734ba38d7dd9a5d0055340e6de5709d2de635c
This commit is contained in:
Mrozek, Michal
2018-07-17 14:28:16 +02:00
committed by sys_ocldev
parent 1dc50172d3
commit 121376b248

View File

@ -1223,7 +1223,7 @@ cl_program CL_API_CALL clLinkProgram(cl_context context,
ErrorCodeHelper err(errcodeRet, CL_SUCCESS);
Context *pContext = nullptr;
cl_program program = nullptr;
Program *program = nullptr;
retVal = validateObject(context);
if (CL_SUCCESS == retVal) {
@ -1231,8 +1231,7 @@ cl_program CL_API_CALL clLinkProgram(cl_context context,
}
if (pContext != nullptr) {
program = new Program(pContext, false);
Program *pProgram = castToObject<Program>(program);
retVal = pProgram->link(numDevices, deviceList, options,
retVal = program->link(numDevices, deviceList, options,
numInputPrograms, inputPrograms,
funcNotify, userData);
}