From 52e61183cc98d132754970112592e0ebe1605d42 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 6 Jun 2012 13:42:09 -0700 Subject: [PATCH] Remove unused free() function Since coreboot is running very short, we don't free memory. Hence, drop (dummy) free() Change-Id: I6e2737f07c6b9f73ebfad7d124b97a57cb7454a3 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/1274 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/include/stdlib.h | 1 - src/lib/malloc.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/src/include/stdlib.h b/src/include/stdlib.h index bd0ee30774..bb57ab33fb 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -14,7 +14,6 @@ #if !defined(__PRE_RAM__) void *memalign(size_t boundary, size_t size); void *malloc(size_t size); -void free(void *ptr); #endif #endif /* STDLIB_H */ diff --git a/src/lib/malloc.c b/src/lib/malloc.c index d213a5f966..d2011a10d0 100644 --- a/src/lib/malloc.c +++ b/src/lib/malloc.c @@ -45,9 +45,3 @@ void *malloc(size_t size) { return memalign(sizeof(u64), size); } - -void free(void *where) -{ - /* Don't care */ - MALLOCDBG("free %p\n", where); -}