aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/paging/kheap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/paging/kheap.c')
-rw-r--r--src/kernel/paging/kheap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/paging/kheap.c b/src/kernel/paging/kheap.c
index 9af33f7..17fc0e7 100644
--- a/src/kernel/paging/kheap.c
+++ b/src/kernel/paging/kheap.c
@@ -19,13 +19,11 @@ uint32_t kmalloc_int(uint32_t sz, int align, uint32_t *phys) {
return (uint32_t) addr;
} else {
if (align == 1 && (placement_address & 0xFFFFF000)) {
-
placement_address &= 0xFFFFF000;
placement_address += 0x1000;
}
- if (phys) {
+ if (phys)
*phys = placement_address;
- }
uint32_t tmp = placement_address;
placement_address += sz;
return tmp;