Skip to content

Commit 78cf7a9

Browse files
committed
Fix formatting
Signed-off-by: Neil R. Spruit <[email protected]>
1 parent c414b96 commit 78cf7a9

File tree

1 file changed

+6
-7
lines changed
  • unified-runtime/source/adapters/level_zero/v2

1 file changed

+6
-7
lines changed

unified-runtime/source/adapters/level_zero/v2/memory.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,12 @@ ur_integrated_buffer_handle_t::ur_integrated_buffer_handle_t(
109109
ur_context_handle_t hContext, void *hostPtr, size_t size,
110110
device_access_mode_t accessMode, bool ownHostPtr)
111111
: ur_mem_buffer_t(hContext, size, accessMode) {
112-
this->ptr =
113-
usm_unique_ptr_t(hostPtr, [hContext, ownHostPtr](void *ptr) {
114-
if (!ownHostPtr || !checkL0LoaderTeardown()) {
115-
return;
116-
}
117-
ZE_CALL_NOCHECK(zeMemFree, (hContext->getZeHandle(), ptr));
118-
});
112+
this->ptr = usm_unique_ptr_t(hostPtr, [hContext, ownHostPtr](void *ptr) {
113+
if (!ownHostPtr || !checkL0LoaderTeardown()) {
114+
return;
115+
}
116+
ZE_CALL_NOCHECK(zeMemFree, (hContext->getZeHandle(), ptr));
117+
});
119118
}
120119

121120
void *ur_integrated_buffer_handle_t::getDevicePtr(

0 commit comments

Comments
 (0)