From 1f001fe917dc4955382a3c2b8ff9bad3530ae970 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 23 Apr 2012 17:55:36 +0200 Subject: [PATCH] unix: remove kqueue cb == NULL check The other implementations don't check for it and it's making the counters_init test fail. --- src/unix/kqueue.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/unix/kqueue.c b/src/unix/kqueue.c index 1af2fbe3..40463232 100644 --- a/src/unix/kqueue.c +++ b/src/unix/kqueue.c @@ -97,11 +97,6 @@ int uv_fs_event_init(uv_loop_t* loop, /* We don't support any flags yet. */ assert(!flags); - if (cb == NULL) { - uv__set_sys_error(loop, EINVAL); - return -1; - } - /* TODO open asynchronously - but how do we report back errors? */ if ((fd = open(filename, O_RDONLY)) == -1) { uv__set_sys_error(loop, errno);