From f12b5fbe71261345170beeade2635553a5176ef2 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 29 Nov 1999 22:02:15 +0000 Subject: revents already cleared; d --- sys/kern/sys_generic.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/kern/sys_generic.c') diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index 85c271a8ba4..012a51a9580 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_generic.c,v 1.21 1999/11/29 19:56:59 deraadt Exp $ */ +/* $OpenBSD: sys_generic.c,v 1.22 1999/11/29 22:02:14 deraadt Exp $ */ /* $NetBSD: sys_generic.c,v 1.24 1996/03/29 00:25:32 cgd Exp $ */ /* @@ -777,10 +777,8 @@ pollscan(p, pl, nfd, retval) */ for (i = 0; i < nfd; i++) { /* Check the file descriptor. */ - if (pl[i].fd < 0) { - pl[i].revents = 0; + if (pl[i].fd < 0) continue; - } if (pl[i].fd >= fdp->fd_nfiles) { pl[i].revents = POLLNVAL; n++; -- cgit v1.2.3