Commit deff6fb3 authored by Stephen Warren's avatar Stephen Warren Committed by Tom Rini

malloc: remove !gd handling

Following the previous patch, malloc() is never called before gd is set,
so we can remove the special-case check for this condition.

This reverts commit 854d2b97 "dlmalloc: ensure gd is set for early

Cc: Rabin Vincent <>
Signed-off-by: default avatarStephen Warren <>
Reviewed-by: default avatarTom Rini <>
Reviewed-by: default avatarSimon Glass <>
parent 2f0bcd4d
......@@ -2184,7 +2184,7 @@ Void_t* mALLOc(bytes) size_t bytes;
if (gd && !(gd->flags & GD_FLG_FULL_MALLOC_INIT))
if (!(gd->flags & GD_FLG_FULL_MALLOC_INIT))
return malloc_simple(bytes);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment