Skip to content

Commit 8c8e723

Browse files
committed
Remove unnecessary else branch.
Signed-off-by: JackAKirk <[email protected]>
1 parent 83eaaa5 commit 8c8e723

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/adapters/cuda/enqueue.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueCooperativeKernelLaunchExp(
542542
return urEnqueueKernelLaunchCustomExp(
543543
hQueue, hKernel, workDim, pGlobalWorkSize, pLocalWorkSize, 1,
544544
&coop_prop, numEventsInWaitList, phEventWaitList, phEvent);
545-
} else {
546-
return urEnqueueKernelLaunch(hQueue, hKernel, workDim, pGlobalWorkOffset,
547-
pGlobalWorkSize, pLocalWorkSize,
548-
numEventsInWaitList, phEventWaitList, phEvent);
549545
}
546+
return urEnqueueKernelLaunch(hQueue, hKernel, workDim, pGlobalWorkOffset,
547+
pGlobalWorkSize, pLocalWorkSize,
548+
numEventsInWaitList, phEventWaitList, phEvent);
550549
}
551550

552551
UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunchCustomExp(

0 commit comments

Comments
 (0)