Skip to content

Commit

Permalink
Remove unnecessary epoll code when EPOLL_CTL_DEL is used.
Browse files Browse the repository at this point in the history
When EPOLL_CTL_DEL is used, the epoll_event is ignored and so it does not need
to be initialized.
  • Loading branch information
rosslagerwall committed Feb 9, 2012
1 parent 9a8b349 commit 00c232a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cherokee/fdpoll-epoll.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ _del (cherokee_fdpoll_epoll_t *fdp, int fd)
{ {
struct epoll_event ev; 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 /* Check the fd limit
*/ */
if (unlikely (cherokee_fdpoll_is_empty (FDPOLL(fdp)))) { if (unlikely (cherokee_fdpoll_is_empty (FDPOLL(fdp)))) {
Expand Down

0 comments on commit 00c232a

Please sign in to comment.