1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

Eliminate an unnecessary printf() from kmem_suballoc(). The subsequent

panic() can be extended to convey the same information.
This commit is contained in:
Alan Cox 2008-03-30 20:08:59 +00:00
parent 511dd36b32
commit 24dedba9f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177762

View File

@ -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)