summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2021-02-23 13:50:16 +0000
committerjsg <jsg@openbsd.org>2021-02-23 13:50:16 +0000
commite587a46505f463b3738cad93914a6e2eff12da0d (patch)
treec363660e943c44d084ae3f9d0d873488bab14ce4 /sys/kern/kern_malloc.c
parentAs ip_insertoptions() may prepend a mbuf, "goto bad" has to free (diff)
downloadwireguard-openbsd-e587a46505f463b3738cad93914a6e2eff12da0d.tar.xz
wireguard-openbsd-e587a46505f463b3738cad93914a6e2eff12da0d.zip
remove unused malloc_roundup()
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 84505ab13e7..2c768625607 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.143 2020/12/31 11:04:35 claudio Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.144 2021/02/23 13:50:16 jsg Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -695,18 +695,6 @@ sysctl_malloc(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
/* NOTREACHED */
}
-/*
- * Round up a size to how much malloc would actually allocate.
- */
-size_t
-malloc_roundup(size_t sz)
-{
- if (sz > MAXALLOCSAVE)
- return round_page(sz);
-
- return (1 << BUCKETINDX(sz));
-}
-
#if defined(DDB)
void