From 372e1e65efc3c94a0ba15ae4168e76dc6bffeea0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 12 Dec 2016 12:24:13 +0100 Subject: [PATCH] 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 --- uloop-epoll.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.25.1