summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-04 10:23:02 +0200
committerStefan Metzmacher <metze@samba.org>2013-04-04 18:32:39 +0200
commit7f366d745c1d4e833470d853ec484459157616e7 (patch)
tree4fac6f5c52ac68afba129661c4268a78dc31509f
parenta7f067c244401d37057a7ed7c00ba4ffc76f2b5a (diff)
downloadsamba-7f366d745c1d4e833470d853ec484459157616e7.tar.gz
samba-7f366d745c1d4e833470d853ec484459157616e7.tar.bz2
samba-7f366d745c1d4e833470d853ec484459157616e7.zip
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 <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Apr 4 18:32:39 CEST 2013 on sn-devel-104
-rw-r--r--lib/tevent/tevent_poll.c2
1 files changed, 1 insertions, 1 deletions
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;