projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
malloc: solve dead code issue in memalign()
[platform/kernel/u-boot.git]
/
common
/
dlmalloc.c
diff --git
a/common/dlmalloc.c
b/common/dlmalloc.c
index
2b964d1
..
5ea37df
100644
(file)
--- a/
common/dlmalloc.c
+++ b/
common/dlmalloc.c
@@
-2848,7
+2848,7
@@
Void_t* mEMALIGn(alignment, bytes) size_t alignment; size_t bytes;
return m;
/* Otherwise, fail */
fREe(m);
-
return
NULL;
+
m =
NULL;
}
if (m == NULL) return NULL; /* propagate failure */