diff options
author | Christian Cunningham <cc@localhost> | 2022-02-04 18:31:21 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-04 18:31:21 -0700 |
commit | ab59732b5384d34edc06a9191b00bf32ad53865d (patch) | |
tree | cf33505ae1b50a9c949a9fd8f7d33ea9e1a3d6c7 | |
parent | 3e0cf15954f8f65e975d4af7b8ac659d37bc5377 (diff) |
Remove return code
-rw-r--r-- | src/lib/kmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/kmem.c b/src/lib/kmem.c index a3d0740..bc21abf 100644 --- a/src/lib/kmem.c +++ b/src/lib/kmem.c @@ -62,7 +62,7 @@ void* krealloc(void* old, unsigned int size) void kfree(void* ptr) { if (!((unsigned long)kmem_begin <= (unsigned long)ptr && (unsigned long)ptr < (unsigned long)kmem_begin + 0x200000)) - return 0; + return; unsigned long size = 1; while (!((unsigned long)kmem_begin + 0x1000*(size/2) <= (unsigned long)ptr && (unsigned long)ptr < (unsigned long)kmem_begin + 0x1000*size)) { size *= 2; |