Skip to content

Commit 6c4621f

Browse files
Fix issue in events
alloc was previously potentially never used Change-Id: I9da9aeb51dcf7881d51bb62ef35c9427c8cc3ef0 Signed-off-by: Aravind Gopalakrishnan <[email protected]>
1 parent 1e07454 commit 6c4621f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

level_zero/core/source/event/event.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ ze_result_t Event::destroy() {
199199
void EventImp::makeAllocationResident() {
200200
auto deviceImp = static_cast<DeviceImp *>(this->device);
201201
NEO::MemoryOperationsHandler *memoryOperationsIface = deviceImp->neoDevice->getRootDeviceEnvironment().memoryOperationsInterface.get();
202-
auto alloc = &(this->eventPool->getAllocation());
203202

204203
if (memoryOperationsIface) {
204+
auto alloc = &(this->eventPool->getAllocation());
205205
memoryOperationsIface->makeResident(ArrayRef<NEO::GraphicsAllocation *>(&alloc, 1));
206206
}
207207
}

0 commit comments

Comments
 (0)