mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Use hashdestroy() now that it exists.
This commit is contained in:
parent
3423b21c09
commit
efdc5c8a0f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99102
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue