unix: remove kqueue cb == NULL check

The other implementations don't check for it and it's making the counters_init
test fail.
This commit is contained in:
Ben Noordhuis 2012-04-23 17:55:36 +02:00
parent 1fa1c5106a
commit 1f001fe917

View File

@ -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);