uloop: remove useless epoll data assignment
authorFelix Fietkau <nbd@nbd.name>
Mon, 12 Dec 2016 11:24:13 +0000 (12:24 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 12 Dec 2016 11:24:14 +0000 (12:24 +0100)
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>
uloop-epoll.c

index 6014bea8cc51e93c236d8ddc1b3c0e83aa94384a..609ca6e77990ea1e2dbef7c38d3a2440fb06484b 100644 (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;