Skip to content
This repository
Browse code

Remove unnecessary epoll code when EPOLL_CTL_DEL is used.

When EPOLL_CTL_DEL is used, the epoll_event is ignored and so it does not need
to be initialized.
  • Loading branch information...
commit 4f0d4bbd38ce1d04f2bc33c95a09fe7f80c31ecd 1 parent 3293cb6
Ross Lagerwall authored February 09, 2012 skarcha committed February 27, 2012

Showing 1 changed file with 0 additions and 4 deletions. Show diff stats Hide diff stats

  1. 4  cherokee/fdpoll-epoll.c
4  cherokee/fdpoll-epoll.c
@@ -124,10 +124,6 @@ _del (cherokee_fdpoll_epoll_t *fdp, int fd)
124 124
 {
125 125
 	struct epoll_event ev;
126 126
 
127  
-	ev.events   = 0;
128  
-	ev.data.u64 = 0;  /* <- I just wanna be sure there aren't */
129  
-	ev.data.fd  = fd; /* <- 4 bytes uninitialized */
130  
-
131 127
 	/* Check the fd limit
132 128
 	 */
133 129
 	if (unlikely (cherokee_fdpoll_is_empty (FDPOLL(fdp)))) {

0 notes on commit 4f0d4bb

Please sign in to comment.
Something went wrong with that request. Please try again.