Eliminate an unnecessary printf() from kmem_suballoc(). The subsequent
panic() can be extended to convey the same information.
This commit is contained in:
parent
511dd36b32
commit
24dedba9f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177762
@ -236,10 +236,8 @@ kmem_suballoc(parent, min, max, size)
|
||||
*min = (vm_offset_t) vm_map_min(parent);
|
||||
ret = vm_map_find(parent, NULL, (vm_offset_t) 0,
|
||||
min, size, TRUE, VM_PROT_ALL, VM_PROT_ALL, 0);
|
||||
if (ret != KERN_SUCCESS) {
|
||||
printf("kmem_suballoc: bad status return of %d.\n", ret);
|
||||
panic("kmem_suballoc");
|
||||
}
|
||||
if (ret != KERN_SUCCESS)
|
||||
panic("kmem_suballoc: bad status return of %d", ret);
|
||||
*max = *min + size;
|
||||
result = vm_map_create(vm_map_pmap(parent), *min, *max);
|
||||
if (result == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user