]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
minor speedup
authorTimo Sirainen <tss@iki.fi>
Fri, 23 May 2003 14:12:43 +0000 (17:12 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 23 May 2003 14:12:43 +0000 (17:12 +0300)
--HG--
branch : HEAD

src/lib/ioloop-poll.c

index 65cc2805e38e6189ce619afab5091ec11f591033..64a99a359027f010f4ebc35e94dfcaefbfdf019d 100644 (file)
@@ -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",