Skip to content

Commit 91ad6dd

Browse files
committed
Remove unnecessary EventImpl check
1 parent 1d1bf16 commit 91ad6dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/queue_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ queue_impl::submit_direct(bool CallerNeedsEvent,
567567
}
568568

569569
// Barrier and un-enqueued commands synchronization for out or order queue
570-
if (!isInOrder() && EventImpl && !EventImpl->isEnqueued()) {
570+
if (!isInOrder() && !EventImpl->isEnqueued()) {
571571
MDefaultGraphDeps.UnenqueuedCmdEvents.push_back(EventImpl);
572572
}
573573

0 commit comments

Comments
 (0)