From affcaf7871f6e9b44902f0eaa3d3eeee45db7f6b Mon Sep 17 00:00:00 2001 From: Max Khon Date: Sun, 11 Jun 2006 22:09:28 +0000 Subject: Fix KASSERT conditions in if_deregister_com_alloc(). --- sys/net/if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') diff --git a/sys/net/if.c b/sys/net/if.c index a3c02bb43a4b..8a98fa621b99 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; -- cgit v1.2.3