File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
source/adapters/level_zero Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -432,14 +432,12 @@ ur_result_t ur_context_handle_t_::finalize() {
432
432
for (auto &List : ZeComputeCommandListCache) {
433
433
for (auto &Item : List.second ) {
434
434
ze_command_list_handle_t ZeCommandList = Item.first ;
435
- if (ZeCommandList)
436
- if (ZeCommandList) {
437
- auto ZeResult =
438
- ZE_CALL_NOCHECK (zeCommandListDestroy, (ZeCommandList));
439
- // Gracefully handle the case that L0 was already unloaded.
440
- if (ZeResult && ZeResult != ZE_RESULT_ERROR_UNINITIALIZED)
441
- return ze2urResult (ZeResult);
442
- }
435
+ if (ZeCommandList) {
436
+ auto ZeResult = ZE_CALL_NOCHECK (zeCommandListDestroy, (ZeCommandList));
437
+ // Gracefully handle the case that L0 was already unloaded.
438
+ if (ZeResult && ZeResult != ZE_RESULT_ERROR_UNINITIALIZED)
439
+ return ze2urResult (ZeResult);
440
+ }
443
441
}
444
442
}
445
443
for (auto &List : ZeCopyCommandListCache) {
Original file line number Diff line number Diff line change @@ -423,7 +423,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventGetInfo(
423
423
}
424
424
}
425
425
return ReturnValue (Result);
426
- return UR_RESULT_SUCCESS;
427
426
}
428
427
case UR_EVENT_INFO_REFERENCE_COUNT: {
429
428
return ReturnValue (Event->RefCount .load ());
You can’t perform that action at this time.
0 commit comments