From: Timo Sirainen Date: Fri, 23 May 2003 14:12:43 +0000 (+0300) Subject: minor speedup X-Git-Tag: 1.1.alpha1~4609 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68913bb7b67ce447f2d91c160b108579c7da0ba2;p=thirdparty%2Fdovecot%2Fcore.git minor speedup --HG-- branch : HEAD --- diff --git a/src/lib/ioloop-poll.c b/src/lib/ioloop-poll.c index 65cc2805e3..64a99a3590 100644 --- a/src/lib/ioloop-poll.c +++ b/src/lib/ioloop-poll.c @@ -183,11 +183,9 @@ void io_loop_handler_run(struct ioloop *ioloop) i_assert(io->fd >= 0); pollfd = &data->fds[data->fd_index[io->fd]]; - if (pollfd->revents != 0) - ret--; - if (pollfd->revents == 0) continue; + ret--; if (pollfd->revents & POLLNVAL) { i_error("invalid I/O fd %d, callback %p",