summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2018-12-29 14:23:20 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2018-12-29 14:23:20 +0000
commit91cbb62b513af9fac1c26cdc6b5118629dce691c (patch)
tree310bf525a493ea9ec9fb2d5e05a6eb8de15c1b2c /ev.c
parent31ca40b7a18ed424213a4ecba0d57706ed3e56a0 (diff)
downloadlibev-91cbb62b513af9fac1c26cdc6b5118629dce691c.tar.gz
libev-91cbb62b513af9fac1c26cdc6b5118629dce691c.zip
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ev.c b/ev.c
index 47ef28a..7fe1241 100644
--- a/ev.c
+++ b/ev.c
@@ -5005,12 +5005,6 @@ ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, vo
{
struct ev_once *once = (struct ev_once *)ev_malloc (sizeof (struct ev_once));
- if (expect_false (!once))
- {
- cb (EV_ERROR | EV_READ | EV_WRITE | EV_TIMER, arg);
- return;
- }
-
once->cb = cb;
once->arg = arg;