summaryrefslogtreecommitdiff
path: root/sys/gnu
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2002-06-30 03:01:44 +0000
committerIan Dowse <iedowse@FreeBSD.org>2002-06-30 03:01:44 +0000
commitefdc5c8a0f576a011481299d49faaffa436f1d7b (patch)
tree4a83d1cbec6c7188acec0d3790e15ab238683c66 /sys/gnu
parent3423b21c0975259cb979fed4ad6dcb63ba68ff37 (diff)
Notes
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/ext2fs/ext2_ihash.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/gnu/ext2fs/ext2_ihash.c b/sys/gnu/ext2fs/ext2_ihash.c
index d404e151e9b3..decbc3530457 100644
--- a/sys/gnu/ext2fs/ext2_ihash.c
+++ b/sys/gnu/ext2fs/ext2_ihash.c
@@ -73,13 +73,8 @@ ext2_ihashinit()
void
ext2_ihashuninit()
{
- struct ihashhead *hp;
- for (hp = ihashtbl; hp < &ihashtbl[ihash]; hp++)
- if (!LIST_EMPTY(hp))
- panic("ext2_ihashuninit: ihash not empty");
- free(ihashtbl, M_EXT2IHASH);
- ihashtbl = NULL;
+ hashdestroy(ihashtbl, M_EXT2IHASH, ihash);
mtx_destroy(&ext2_ihash_mtx);
}