From 7f366d745c1d4e833470d853ec484459157616e7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 4 Apr 2013 10:23:02 +0200 Subject: tevent: Only set poll_ev->delete=false if it was true Might not be noticable, but I thought it would be an obvious tiny optimization. Possibly the compiler already does this. Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Thu Apr 4 18:32:39 CEST 2013 on sn-devel-104 --- lib/tevent/tevent_poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tevent/tevent_poll.c') diff --git a/lib/tevent/tevent_poll.c b/lib/tevent/tevent_poll.c index 92fcc441ac..c6e2a00ffe 100644 --- a/lib/tevent/tevent_poll.c +++ b/lib/tevent/tevent_poll.c @@ -419,8 +419,8 @@ static bool poll_event_setup_fresh(struct tevent_context *ev, poll_ev->fdes[i]->additional_flags = i; } } + poll_ev->deleted = false; } - poll_ev->deleted = false; if (poll_ev->fresh == NULL) { return true; -- cgit