summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tevent/tevent_wakeup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/tevent/tevent_wakeup.c b/lib/tevent/tevent_wakeup.c
index 82c3942ba8..e217f337e5 100644
--- a/lib/tevent/tevent_wakeup.c
+++ b/lib/tevent/tevent_wakeup.c
@@ -46,12 +46,9 @@ struct tevent_req *tevent_wakeup_send(TALLOC_CTX *mem_ctx,
state->wakeup_time = wakeup_time;
if (!tevent_req_set_endtime(req, ev, wakeup_time)) {
- goto post;
+ return tevent_req_post(req, ev);
}
-
return req;
-post:
- return tevent_req_post(req, ev);
}
bool tevent_wakeup_recv(struct tevent_req *req)