summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Goldschmidt <[email protected]>2018-08-16 09:50:32 +0200
committerTom Rini <[email protected]>2018-08-24 13:20:19 -0400
commitf3da76ea8b4c559ac0dc9206dc1676dde2224cd8 (patch)
treefe749c4817f565b0f109ac032101d781aad2018b /include
parenta5e34fc0b628627cbda444a19a896895cfb4c552 (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 <[email protected]> Reviewed-by: Marek Vasut <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions