From 46b993449264a2332427a165b4c77e400a053178 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 14 Dec 2011 14:00:21 -0800 Subject: [PATCH] core: remove redundant zalloc() definition Remove a redundant definition of zalloc() which causes a compile failure. Signed-off-by: H. Peter Anvin --- core/mem/malloc.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/mem/malloc.c b/core/mem/malloc.c index d27fc27..fa3c395 100644 --- a/core/mem/malloc.c +++ b/core/mem/malloc.c @@ -201,14 +201,3 @@ void *realloc(void *ptr, size_t size) } } } - -void *zalloc(size_t size) -{ - void *ptr; - - ptr = malloc(size); - if (ptr) - memset(ptr, 0, size); - - return ptr; -} -- 2.7.4