projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e4789d
)
core: remove redundant zalloc() definition
author
H. Peter Anvin
<hpa@linux.intel.com>
Wed, 14 Dec 2011 22:00:21 +0000
(14:00 -0800)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Wed, 14 Dec 2011 22:00:21 +0000
(14:00 -0800)
Remove a redundant definition of zalloc() which causes a compile
failure.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/mem/malloc.c
patch
|
blob
|
history
diff --git
a/core/mem/malloc.c
b/core/mem/malloc.c
index
d27fc27
..
fa3c395
100644
(file)
--- 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;
-}