Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: remove kqueue cb == NULL check
Browse files Browse the repository at this point in the history
The other implementations don't check for it and it's making the counters_init
test fail.
  • Loading branch information
bnoordhuis committed Apr 23, 2012
1 parent 1fa1c51 commit 1f001fe
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/unix/kqueue.c
Expand Up @@ -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);
Expand Down

0 comments on commit 1f001fe

Please sign in to comment.