MT#55283 remove pointless lock

Leftover from a commit long time ago

Change-Id: I72501688c92ba37699c32f56e84be89ebc7d5f61
pull/1701/head
Richard Fuchs 3 years ago
parent 82b2829162
commit 3b53910fc3

@ -279,13 +279,11 @@ int poller_poll(struct poller *p, int timeout) {
if (!p)
return -1;
mutex_lock(&p->lock);
mutex_unlock(&p->lock);
errno = 0;
thread_cancel_enable();
ret = epoll_wait(p->fd, evs, sizeof(evs) / sizeof(*evs), timeout);
thread_cancel_disable();
mutex_lock(&p->lock);
if (errno == EINTR)

Loading…
Cancel
Save