Runtime: Remove event and wait events compare when check event.

Submitted by Yang, Rong R on July 16, 2015, 7:37 a.m.

Details

Message ID 1437032232-4582-1-git-send-email-rong.r.yang@intel.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Yang, Rong R July 16, 2015, 7:37 a.m.
When the event parament is not NULL, the event will point to a new event, so
need not check between the event and wait events.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
---
 src/cl_event.c | 2 --
 1 file changed, 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/cl_event.c b/src/cl_event.c
index b4734b2..9664d86 100644
--- a/src/cl_event.c
+++ b/src/cl_event.c
@@ -221,8 +221,6 @@  cl_int cl_event_check_waitlist(cl_uint num_events_in_wait_list,
       err = CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST;
       goto exit;
     }
-    if(event && *event == event_wait_list[i])
-      goto error;
     if(event_wait_list[i]->ctx != ctx)
       goto error;
   }