Remove non-needed branch from freeMem

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2022-06-02 07:27:14 +00:00
committed by Compute-Runtime-Automation
parent 53c67934e1
commit 8c6a3639d9

View File

@ -305,9 +305,6 @@ ze_result_t ContextImp::freeMem(const void *ptr, bool blocking) {
} }
this->driverHandle->svmAllocsManager->freeSVMAlloc(const_cast<void *>(ptr), blocking); this->driverHandle->svmAllocsManager->freeSVMAlloc(const_cast<void *>(ptr), blocking);
if (this->driverHandle->svmAllocsManager->getSvmMapOperation(ptr)) {
this->driverHandle->svmAllocsManager->removeSvmMapOperation(ptr);
}
return ZE_RESULT_SUCCESS; return ZE_RESULT_SUCCESS;
} }