summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2006-06-11 22:09:28 +0000
committerfjoe <fjoe@FreeBSD.org>2006-06-11 22:09:28 +0000
commit0d8c7ef30e7c962c5912eae1146cc053f222e7f4 (patch)
tree11133ccbb8d2de389bcabba11db2f51315267bdb /sys
parent2ee476dd470a4cfb95ab7eacb55e111d2ab63f6a (diff)
downloadFreeBSD-src-0d8c7ef30e7c962c5912eae1146cc053f222e7f4.zip
FreeBSD-src-0d8c7ef30e7c962c5912eae1146cc053f222e7f4.tar.gz
Fix KASSERT conditions in if_deregister_com_alloc().
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index a3c02bb..8a98fa6 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -2279,9 +2279,9 @@ void
if_deregister_com_alloc(u_char type)
{
- KASSERT(if_com_alloc[type] == NULL,
+ KASSERT(if_com_alloc[type] != NULL,
("if_deregister_com_alloc: %d not registered", type));
- KASSERT(if_com_free[type] == NULL,
+ KASSERT(if_com_free[type] != NULL,
("if_deregister_com_alloc: %d free not registered", type));
if_com_alloc[type] = NULL;
if_com_free[type] = NULL;
OpenPOWER on IntegriCloud