summaryrefslogtreecommitdiff
path: root/sys/dev/snp
diff options
context:
space:
mode:
authorEivind Eklund <eivind@FreeBSD.org>1999-01-10 01:58:29 +0000
committerEivind Eklund <eivind@FreeBSD.org>1999-01-10 01:58:29 +0000
commit219cbf59f29f8bde5612560d29f6f691d1903444 (patch)
tree79135e2bab4266d5d644e29c0d5599b722e1986f /sys/dev/snp
parentc0cdeb7c061471715383c60a54e61cc0c59c69ba (diff)
Notes
Diffstat (limited to 'sys/dev/snp')
-rw-r--r--sys/dev/snp/snp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c
index 06f17dd6e71e..ba71a949fb3b 100644
--- a/sys/dev/snp/snp.c
+++ b/sys/dev/snp/snp.c
@@ -136,7 +136,7 @@ snpread(dev, uio, flag)
char *nbuf;
KASSERT(snp->snp_len + snp->snp_base <= snp->snp_blen,
- ("snoop buffer error"));
+ ("snoop buffer error"));
if (snp->snp_tty == NULL)
return (EIO);
@@ -206,12 +206,11 @@ snpin(snp, buf, n)
caddr_t from, to;
char *nbuf;
+ KASSERT(n >= 0, ("negative snoop char count"));
if (n == 0)
return 0;
- KASSERT(n > 0, ("negative snoop char count"));
-
#ifdef DIAGNOSTIC
if (!(snp->snp_flags & SNOOP_OPEN)) {
printf("Snoop: data coming to closed device.\n");