summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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