diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2012-03-11 19:30:36 +0100 |
---|---|---|
committer | Mathias Krause <minipli@googlemail.com> | 2012-03-11 22:18:57 +0100 |
commit | fb5026c40607eb9aa8927c8eeace75d1e32797fc (patch) | |
tree | 3dab29752b60c6affea3fe28a543f21596964295 /src | |
parent | 0c245370a16776d156ed58563172e1bc397adc32 (diff) |
malloc: size is unsigned, don't test for size < 0
clang complains
Change-Id: Ifadf73cf377c0d1808e20731803e01101bad7e1d
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/780
Tested-by: build bot (Jenkins)
Reviewed-by: Mathias Krause <minipli@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/malloc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/malloc.c b/src/lib/malloc.c index 3cedc8f82f..c10750d5e9 100644 --- a/src/lib/malloc.c +++ b/src/lib/malloc.c @@ -17,10 +17,6 @@ void *malloc(size_t size) MALLOCDBG("%s Enter, size %ld, free_mem_ptr %p\n", __func__, size, free_mem_ptr); - /* Checking arguments */ - if (size < 0) - die("Error! malloc: size < 0"); - /* Overzealous linker check */ if (free_mem_ptr <= 0) die("Error! malloc: Free_mem_ptr <= 0"); |