Remove redundant cast.

Change-Id: Ic1b2b247645efbde1351efc6a20f91e5c39b398f
This commit is contained in:
Mrozek, Michal
2018-07-19 14:39:07 +02:00
committed by sys_ocldev
parent acf86d9cef
commit 224d513c3b

View File

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