Eliminate pointless casts from kmem_suballoc().

This commit is contained in:
Alan Cox 2008-04-28 17:25:27 +00:00
parent 7ee52b008a
commit 2bc24aa956
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178637

View File

@ -233,8 +233,8 @@ kmem_suballoc(parent, min, max, size)
size = round_page(size);
*min = (vm_offset_t) vm_map_min(parent);
ret = vm_map_find(parent, NULL, (vm_offset_t) 0,
*min = vm_map_min(parent);
ret = vm_map_find(parent, NULL, 0,
min, size, TRUE, VM_PROT_ALL, VM_PROT_ALL, 0);
if (ret != KERN_SUCCESS)
panic("kmem_suballoc: bad status return of %d", ret);