From 6c0758219a8d3dc0c6673f8c7b38386dbbc75559 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 16 Aug 2013 11:32:08 +0000 Subject: tevent: Remove a pointless goto Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- lib/tevent/tevent_wakeup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/tevent') 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) -- cgit