commit | be17881cb48fac433144022cbb416c9f9e539692 | [log] [tgz] |
---|---|---|
author | Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> | Thu Aug 16 09:50:32 2018 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri Aug 24 13:20:19 2018 -0400 |
tree | fe749c4817f565b0f109ac032101d781aad2018b | |
parent | 41aacdd714e650abd803909abb46911a61aa219b [diff] |
malloc_simple: calloc: don't call memset if malloc failed malloc_simple() can return 0 if out of memory. Don't call memset from calloc() in this case but rely on the caller checking the return value. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by: Marek Vasut <marex@denx.de>