From a7504f555eff101a10ded653ceac98d8294c1659 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 17 Jun 2017 21:26:27 +0200 Subject: [PATCH] tevent: Simplify create_immediate Not much change, just 9 lines less of code. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- lib/tevent/tevent.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/tevent/tevent.c b/lib/tevent/tevent.c index f3b18a15272..5f44b035e50 100644 --- a/lib/tevent/tevent.c +++ b/lib/tevent/tevent.c @@ -616,16 +616,7 @@ struct tevent_immediate *_tevent_create_immediate(TALLOC_CTX *mem_ctx, im = talloc(mem_ctx, struct tevent_immediate); if (im == NULL) return NULL; - im->prev = NULL; - im->next = NULL; - im->event_ctx = NULL; - im->create_location = location; - im->handler = NULL; - im->private_data = NULL; - im->handler_name = NULL; - im->schedule_location = NULL; - im->cancel_fn = NULL; - im->additional_data = NULL; + *im = (struct tevent_immediate) { .create_location = location }; return im; } -- 2.11.4.GIT