tevent: Only set poll_ev->delete=false if it was true
authorVolker Lendecke <vl@samba.org>
Thu, 4 Apr 2013 08:23:02 +0000 (10:23 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 4 Apr 2013 16:32:39 +0000 (18:32 +0200)
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

lib/tevent/tevent_poll.c

index 92fcc441ac9aa1e8e6a35c470742a6104f148b4f..c6e2a00ffec6393fd6fccc1a3836f63e4ef4e045 100644 (file)
@@ -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;