aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/snp
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-05-06 18:13:11 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-05-06 18:13:11 +0000
commitdfd5dee1b0cf927c9d59de8e423325603f86b500 (patch)
treeb8fae917f3fe139609bec4915b6cbc239974a255 /sys/dev/snp
parent5f0d05904c70c58e07d4fd7fa4570840fbd9afda (diff)
Notes
Diffstat (limited to 'sys/dev/snp')
-rw-r--r--sys/dev/snp/snp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c
index 0a1438d8011da..ebffb2a28e2de 100644
--- a/sys/dev/snp/snp.c
+++ b/sys/dev/snp/snp.c
@@ -497,12 +497,12 @@ snppoll(dev, events, p)
* Caller should see if we down via FIONREAD ioctl().The last should
* return -1 to indicate down state.
*/
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (snp->snp_flags & SNOOP_DOWN || snp->snp_len > 0)
revents |= events & (POLLIN | POLLRDNORM);
else
selrecord(p, &snp->snp_sel);
-
+ }
return (revents);
}