File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -371,8 +371,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueEventsWaitWithBarrier(
371
371
UR_ASSERT (!(phEventWaitList != NULL && numEventsInWaitList == 0 ),
372
372
UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST)
373
373
374
- ur_result_t Result;
375
-
376
374
try {
377
375
ScopedContext Active (hQueue->getDevice ());
378
376
uint32_t StreamToken;
@@ -420,9 +418,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueEventsWaitWithBarrier(
420
418
hQueue->TransferAppliedBarrier [i] = false ;
421
419
}
422
420
}
423
- if (Result != UR_RESULT_SUCCESS) {
424
- return Result;
425
- }
426
421
427
422
if (phEvent) {
428
423
*phEvent = ur_event_handle_t_::makeNative (
@@ -622,7 +617,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueMemBufferCopy(
622
617
623
618
try {
624
619
ScopedContext Active (hQueue->getDevice ());
625
- ur_result_t Result;
620
+ ur_result_t Result = UR_RESULT_SUCCESS ;
626
621
auto Stream = hQueue->getNextTransferStream ();
627
622
628
623
if (phEventWaitList) {
You can’t perform that action at this time.
0 commit comments