diff options
author | fjoe <fjoe@FreeBSD.org> | 2006-06-11 22:09:28 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2006-06-11 22:09:28 +0000 |
commit | 0d8c7ef30e7c962c5912eae1146cc053f222e7f4 (patch) | |
tree | 11133ccbb8d2de389bcabba11db2f51315267bdb /sys/net | |
parent | 2ee476dd470a4cfb95ab7eacb55e111d2ab63f6a (diff) | |
download | FreeBSD-src-0d8c7ef30e7c962c5912eae1146cc053f222e7f4.zip FreeBSD-src-0d8c7ef30e7c962c5912eae1146cc053f222e7f4.tar.gz |
Fix KASSERT conditions in if_deregister_com_alloc().
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 4 |
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; |