1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Removes useless (flags | ) KASSERT. The ^ one that actually

does what we want.

Submitted by:	Li Xin delphij@delphij.net
Reviewed by:	rrs
Approved by:	gnn
This commit is contained in:
Randall Stewart 2007-01-16 11:40:55 +00:00
parent b95eac2f41
commit 9b3386570c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166042

View File

@ -371,14 +371,9 @@ hashinit_flags(int elements, struct malloc_type *type, u_long *hashmask,
if (elements <= 0)
panic("hashinit: bad elements");
/* Check for valid flags. */
KASSERT((flags | (HASH_WAITOK | HASH_NOWAIT)) ==
(HASH_WAITOK | HASH_NOWAIT),
("Bad flags (0x%x) passed to hashinit_flags", flags));
/* Exactly one of HASH_WAITOK and HASH_NOWAIT must be set. */
KASSERT((flags & HASH_WAITOK) ^ (flags & HASH_NOWAIT),
("Both WAITOK and NOWAIT passed to hashinit_flags"));
("Bad flags (0x%x) passed to hashinit_flags", flags));
for (hashsize = 1; hashsize <= elements; hashsize <<= 1)
continue;