summaryrefslogtreecommitdiff
path: root/src/cl_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cl_api.c')
-rw-r--r--src/cl_api.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cl_api.c b/src/cl_api.c
index 73447c4f..327f02bd 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -2973,10 +2973,7 @@ clEnqueueMarkerWithWaitList(cl_command_queue command_queue,
{
cl_int err = CL_SUCCESS;
CHECK_QUEUE(command_queue);
- if(event == NULL) {
- err = CL_INVALID_VALUE;
- goto error;
- }
+
TRY(cl_event_check_waitlist, num_events_in_wait_list, event_wait_list, event, command_queue->ctx);
cl_event_marker_with_wait_list(command_queue, num_events_in_wait_list, event_wait_list, event);