diff options
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/ext2fs/ext2_ihash.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/gnu/ext2fs/ext2_ihash.c b/sys/gnu/ext2fs/ext2_ihash.c index d404e15..decbc35 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); } |