diff options
author | Max Khon <fjoe@FreeBSD.org> | 2006-06-11 22:09:28 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2006-06-11 22:09:28 +0000 |
commit | affcaf7871f6e9b44902f0eaa3d3eeee45db7f6b (patch) | |
tree | 11133ccbb8d2de389bcabba11db2f51315267bdb /sys/net | |
parent | 708f27a157a93a5e6fcc859b7c42e3e0f655935d (diff) | |
download | src-affcaf7871f6e9b44902f0eaa3d3eeee45db7f6b.tar.gz src-affcaf7871f6e9b44902f0eaa3d3eeee45db7f6b.zip |
Fix KASSERT conditions in if_deregister_com_alloc().
Notes
Notes:
svn path=/head/; revision=159528
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 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; |