diff options
| author | Ian Dowse <iedowse@FreeBSD.org> | 2002-06-30 03:01:44 +0000 |
|---|---|---|
| committer | Ian Dowse <iedowse@FreeBSD.org> | 2002-06-30 03:01:44 +0000 |
| commit | efdc5c8a0f576a011481299d49faaffa436f1d7b (patch) | |
| tree | 4a83d1cbec6c7188acec0d3790e15ab238683c66 /sys/gnu | |
| parent | 3423b21c0975259cb979fed4ad6dcb63ba68ff37 (diff) | |
Notes
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 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); } |
