Simplify contigfree().

This commit is contained in:
Alan Cox 2009-06-05 16:55:10 +00:00
parent 8a4444049e
commit 42d9e2c4a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193521

View file

@ -281,9 +281,7 @@ contigmalloc(
void
contigfree(void *addr, unsigned long size, struct malloc_type *type)
{
vm_pindex_t npgs;
npgs = round_page(size) >> PAGE_SHIFT;
kmem_free(kernel_map, (vm_offset_t)addr, size);
malloc_type_freed(type, npgs << PAGE_SHIFT);
malloc_type_freed(type, round_page(size));
}