summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_init.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-08-07 05:58:31 +0000
committeralc <alc@FreeBSD.org>2004-08-07 05:58:31 +0000
commitb09b0106ce7cc2045e1b22f976e6bae335804ec4 (patch)
tree563afe340549c4c5e308536ba340a91168bdc2a1 /sys/vm/vm_init.c
parent0b96114d04c3ab18400c94be09d427403ccc2b4c (diff)
downloadFreeBSD-src-b09b0106ce7cc2045e1b22f976e6bae335804ec4.zip
FreeBSD-src-b09b0106ce7cc2045e1b22f976e6bae335804ec4.tar.gz
Remove dead code. A vm_map's first_free is never NULL (even if the map is
full). (This is preparation for an O(log n) implementation of vm_map_findspace().) Submitted by: Mark W. Krentel
Diffstat (limited to 'sys/vm/vm_init.c')
-rw-r--r--sys/vm/vm_init.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/vm/vm_init.c b/sys/vm/vm_init.c
index 282dd5c..d57738a 100644
--- a/sys/vm/vm_init.c
+++ b/sys/vm/vm_init.c
@@ -157,13 +157,8 @@ again:
* Discount the physical memory larger than the size of kernel_map
* to avoid eating up all of KVA space.
*/
- if (kernel_map->first_free == NULL) {
- printf("Warning: no free entries in kernel_map.\n");
- physmem_est = physmem;
- } else {
- physmem_est = lmin(physmem, btoc(kernel_map->max_offset -
- kernel_map->min_offset));
- }
+ physmem_est = lmin(physmem, btoc(kernel_map->max_offset -
+ kernel_map->min_offset));
v = kern_vfs_bio_buffer_alloc(v, physmem_est);
OpenPOWER on IntegriCloud