Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@rosslagerwall rosslagerwall authored skarcha committed
Showing with 0 additions and 4 deletions.
  1. +0 −4 cherokee/fdpoll-epoll.c
View
4 cherokee/fdpoll-epoll.c
@@ -124,10 +124,6 @@ _del (cherokee_fdpoll_epoll_t *fdp, int fd)
{
struct epoll_event ev;
- ev.events = 0;
- ev.data.u64 = 0; /* <- I just wanna be sure there aren't */
- ev.data.fd = fd; /* <- 4 bytes uninitialized */
-
/* Check the fd limit
*/
if (unlikely (cherokee_fdpoll_is_empty (FDPOLL(fdp)))) {

0 comments on commit 4f0d4bb

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