mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Remove redundant cast.
Change-Id: I72734ba38d7dd9a5d0055340e6de5709d2de635c
This commit is contained in:

committed by
sys_ocldev

parent
1dc50172d3
commit
121376b248
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user