diff --git a/kalloc.c b/kalloc.c
index 35ea6ed13d58e43d2f0cc410fb9b28e270016188..897d9d7a13148b01a3e345b40314ee51d19649bc 100644
--- a/kalloc.c
+++ b/kalloc.c
@@ -21,7 +21,7 @@ struct {
 extern char end[]; // first address after kernel loaded from ELF file
 static char *newend;
 
-// simple page allocator to get off the ground during entry
+// A simple page allocator to get off the ground during entry
 char *
 enter_alloc(void)
 {
@@ -36,12 +36,6 @@ enter_alloc(void)
   return p;
 }
 
-uint
-detect_memory(void)
-{
-  return 0xE000000;
-}
-
 // Initialize free list of physical pages.
 void
 kinit(void)