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 00c232ab2eaa64c92649493990cb2e2f5b24da24 1 parent 9a8b349
Ross Lagerwall authored

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
@@ -128,10 +128,6 @@ _del (cherokee_fdpoll_epoll_t *fdp, int fd)
128 128
 {
129 129
 	struct epoll_event ev;
130 130
 
131  
-	ev.events   = 0;
132  
-	ev.data.u64 = 0;  /* <- I just wanna be sure there aren't */
133  
-	ev.data.fd  = fd; /* <- 4 bytes uninitialized */
134  
-
135 131
 	/* Check the fd limit
136 132
 	 */
137 133
 	if (unlikely (cherokee_fdpoll_is_empty (FDPOLL(fdp)))) {

0 notes on commit 00c232a

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