From: Volker Lendecke Date: Fri, 16 Aug 2013 11:32:08 +0000 (+0000) Subject: tevent: Remove a pointless goto X-Git-Tag: talloc-2.1.0~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c0758219a8d3dc0c6673f8c7b38386dbbc75559;p=thirdparty%2Fsamba.git tevent: Remove a pointless goto Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- diff --git a/lib/tevent/tevent_wakeup.c b/lib/tevent/tevent_wakeup.c index 82c3942ba8e..e217f337e55 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)