diff options
author | iedowse <iedowse@FreeBSD.org> | 2002-06-30 03:01:44 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2002-06-30 03:01:44 +0000 |
commit | 3413234ecbee2d87e7a518b0b91a8ed6e53db89b (patch) | |
tree | 4a83d1cbec6c7188acec0d3790e15ab238683c66 /sys/gnu/ext2fs | |
parent | 948e368072809a52e9061d0d032121f9f62a8891 (diff) | |
download | FreeBSD-src-3413234ecbee2d87e7a518b0b91a8ed6e53db89b.zip FreeBSD-src-3413234ecbee2d87e7a518b0b91a8ed6e53db89b.tar.gz |
Use hashdestroy() now that it exists.
Diffstat (limited to 'sys/gnu/ext2fs')
-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); } |