mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Remove redundant cast.
Change-Id: Ic1b2b247645efbde1351efc6a20f91e5c39b398f
This commit is contained in:
committed by
sys_ocldev
parent
acf86d9cef
commit
224d513c3b
@@ -360,9 +360,7 @@ Buffer *Buffer::createBufferHw(Context *context,
|
||||
bool zeroCopy,
|
||||
bool isHostPtrSVM,
|
||||
bool isImageRedescribed) {
|
||||
auto pContext = castToObject<Context>(context);
|
||||
DEBUG_BREAK_IF(nullptr == pContext);
|
||||
const auto device = pContext->getDevice(0);
|
||||
const auto device = context->getDevice(0);
|
||||
const auto &hwInfo = device->getHardwareInfo();
|
||||
|
||||
auto funcCreate = bufferFactory[hwInfo.pPlatform->eRenderCoreFamily].createBufferFunction;
|
||||
|
||||
Reference in New Issue
Block a user