summaryrefslogtreecommitdiff
path: root/sys/kern/sys_generic.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-29 22:02:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-29 22:02:15 +0000
commitf12b5fbe71261345170beeade2635553a5176ef2 (patch)
tree46bc324d8cb40be310bfce501990bc74a3d9d97b /sys/kern/sys_generic.c
parenta93a356254410847b9330ef7e322850538054a75 (diff)
revents already cleared; d
Diffstat (limited to 'sys/kern/sys_generic.c')
-rw-r--r--sys/kern/sys_generic.c6
1 files changed, 2 insertions, 4 deletions
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++;