aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/memory/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/memory/alloc.c')
-rw-r--r--src/kernel/memory/alloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/memory/alloc.c b/src/kernel/memory/alloc.c
index 904be3a..d1d8b47 100644
--- a/src/kernel/memory/alloc.c
+++ b/src/kernel/memory/alloc.c
@@ -162,8 +162,7 @@ static struct liballoc_major *allocate_new_page(u32 size)
void *malloc(u32 req_size)
{
- if (!paging_enabled)
- warn("Mallocing while paging is disabled!");
+ assert(paging_enabled);
int started_bet = 0;
u64 best_size = 0;