mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
don't bother checking if an unsigned parameter is less than 0 in a KASSERT
This commit is contained in:
parent
095159ecd1
commit
f6126456ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue