summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-08-16 11:32:08 +0000
committerMichael Adam <obnox@samba.org>2013-08-16 16:50:23 +0200
commit6c0758219a8d3dc0c6673f8c7b38386dbbc75559 (patch)
tree8d875c577f9c2d9a4990d94e503f9ee0631ca4ad
parent52ec52b677e8104596aba7bcb933dfe8fc8cdd5c (diff)
downloadsamba-6c0758219a8d3dc0c6673f8c7b38386dbbc75559.tar.gz
samba-6c0758219a8d3dc0c6673f8c7b38386dbbc75559.tar.bz2
samba-6c0758219a8d3dc0c6673f8c7b38386dbbc75559.zip
tevent: Remove a pointless goto
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-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)