summaryrefslogtreecommitdiff
path: root/ipc/ipc_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipc_table.c')
-rw-r--r--ipc/ipc_table.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/ipc/ipc_table.c b/ipc/ipc_table.c
index 1a89d812..0f8592a3 100644
--- a/ipc/ipc_table.c
+++ b/ipc/ipc_table.c
@@ -114,15 +114,7 @@ vm_offset_t
ipc_table_alloc(
vm_size_t size)
{
- vm_offset_t table;
-
- if (size < PAGE_SIZE)
- table = kalloc(size);
- else
- if (kmem_alloc(kmem_map, &table, size) != KERN_SUCCESS)
- table = 0;
-
- return table;
+ return kalloc(size);
}
/*
@@ -139,8 +131,5 @@ ipc_table_free(
vm_size_t size,
vm_offset_t table)
{
- if (size < PAGE_SIZE)
- kfree(table, size);
- else
- kmem_free(kmem_map, table, size);
+ kfree(table, size);
}