Skip to content
This repository
Browse code

Merge pull request #18 from rosslagerwall/dead-code

Removes some unnecessary initializations when using EPOLL_CTL_DEL.
  • Loading branch information...
commit 02fd55f4fee4df17d295ff3e5c06a27815978ae8 2 parents 9a8b349 + 00c232a
Alvaro Lopez Ortega authored February 09, 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
@@ -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 02fd55f

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