tevent: Remove a pointless goto
authorVolker Lendecke <vl@samba.org>
Fri, 16 Aug 2013 11:32:08 +0000 (11:32 +0000)
committerMichael Adam <obnox@samba.org>
Fri, 16 Aug 2013 14:50:23 +0000 (16:50 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/tevent/tevent_wakeup.c

index 82c3942ba8e7233fd1e14e6d217ce29f16f45a33..e217f337e55a671764b72f674b55ac802666c411 100644 (file)
@@ -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)