Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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 00c232ab2eaa64c92649493990cb2e2f5b24da24 1 parent 9a8b349
Ross Lagerwall rosslagerwall authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 cherokee/fdpoll-epoll.c
4 cherokee/fdpoll-epoll.c
View
@@ -128,10 +128,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)))) {
Please sign in to comment.
Something went wrong with that request. Please try again.