Browse Source

uloop: remove useless epoll data assignment

ev.data is a union, so setting ev.data.fd is lost after setting
ev.data.ptr

Reported-by: Song Yaofei <songyaofei@joyware.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
lede-17.01
Felix Fietkau 4 years ago
parent
commit
372e1e65ef
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      uloop-epoll.c

+ 0
- 1
uloop-epoll.c View File

@ -52,7 +52,6 @@ static int register_poll(struct uloop_fd *fd, unsigned int flags)
if (flags & ULOOP_EDGE_TRIGGER)
ev.events |= EPOLLET;
ev.data.fd = fd->fd;
ev.data.ptr = fd;
fd->flags = flags;


Loading…
Cancel
Save