summaryrefslogtreecommitdiff
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-06 00:47:47 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-06 00:47:47 +0000
commit1cb1ffc49c17390e31892e539f2830773c456f4e (patch)
treeb3b8645dfc8987fcd6b7c28a6698ba7a3956e0c4 /sys/kern/kern_malloc.c
parent44cb8b104e1d8ecebdc6da008bda849aa211e760 (diff)
Remove the cpp magic for finding incorrect MAXALLOCSAVE.
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 5428e9d7c90..b276f6e74e2 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.26 2001/05/05 20:57:00 art Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.27 2001/05/06 00:47:46 art Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -434,20 +434,10 @@ void
kmeminit()
{
#ifdef KMEMSTATS
- register long indx;
+ long indx;
#endif
int npg;
-#if ((MAXALLOCSAVE & (MAXALLOCSAVE - 1)) != 0)
- ERROR!_kmeminit:_MAXALLOCSAVE_not_power_of_2
-#endif
-#if (MAXALLOCSAVE > MINALLOCSIZE * 32768)
- ERROR!_kmeminit:_MAXALLOCSAVE_too_big
-#endif
-#if (MAXALLOCSAVE < PAGE_SIZE)
- ERROR!_kmeminit:_MAXALLOCSAVE_too_small
-#endif
-
#ifdef DIAGNOSTIC
if (sizeof(struct freelist) > (1 << MINBUCKET))
panic("kmeminit: minbucket too small/struct freelist too big");