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>
This commit is contained in:
Felix Fietkau 2016-12-12 12:24:13 +01:00
parent f9db1cb918
commit 372e1e65ef

View file

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