From: Felix Fietkau Date: Mon, 12 Dec 2016 11:24:13 +0000 (+0100) Subject: uloop: remove useless epoll data assignment X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=372e1e65efc3c94a0ba15ae4168e76dc6bffeea0;p=oweals%2Flibubox.git 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 Signed-off-by: Felix Fietkau --- diff --git a/uloop-epoll.c b/uloop-epoll.c index 6014bea..609ca6e 100644 --- a/uloop-epoll.c +++ b/uloop-epoll.c @@ -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;