aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pcm/buffer.c
diff options
context:
space:
mode:
authorCameron Grant <cg@FreeBSD.org>2002-01-23 04:50:51 +0000
committerCameron Grant <cg@FreeBSD.org>2002-01-23 04:50:51 +0000
commitf6126456ef8ae3aadf9f39cccb9a64f7b7a1536e (patch)
tree4554de681faac392eb8250c65c013ec93718469e /sys/dev/sound/pcm/buffer.c
parent095159ecd18c645d4dcd72d0924a9c43b982debf (diff)
don't bother checking if an unsigned parameter is less than 0 in a KASSERT
Notes
Notes: svn path=/head/; revision=89685
Diffstat (limited to 'sys/dev/sound/pcm/buffer.c')
-rw-r--r--sys/dev/sound/pcm/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/buffer.c b/sys/dev/sound/pcm/buffer.c
index 5e2e5b36c986..5a83d6b5ba9f 100644
--- a/sys/dev/sound/pcm/buffer.c
+++ b/sys/dev/sound/pcm/buffer.c
@@ -307,7 +307,7 @@ sndbuf_getbuf(struct snd_dbuf *b)
void *
sndbuf_getbufofs(struct snd_dbuf *b, unsigned int ofs)
{
- KASSERT((ofs >= 0) && (ofs <= b->bufsize), ("%s: ofs invalid %d", __func__, ofs));
+ KASSERT(ofs <= b->bufsize, ("%s: ofs invalid %d", __func__, ofs));
return b->buf + ofs;
}