diff options
author | alc <alc@FreeBSD.org> | 2004-08-07 05:58:31 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-08-07 05:58:31 +0000 |
commit | b09b0106ce7cc2045e1b22f976e6bae335804ec4 (patch) | |
tree | 563afe340549c4c5e308536ba340a91168bdc2a1 /sys/vm/vm_init.c | |
parent | 0b96114d04c3ab18400c94be09d427403ccc2b4c (diff) | |
download | FreeBSD-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.c | 9 |
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); |