malloc: don't compare pointers to 0
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 10 Nov 2017 20:46:34 +0000 (21:46 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 21 Nov 2017 01:18:39 +0000 (20:18 -0500)
commita874cac3b45cbb6dd8bad05a5b42912acae6b7e4
tree804e5cc613e40dc79efdfb24fa4b31a301017299
parent06feb5d0bf9953c6918d0e35feef64521c5236c4
malloc: don't compare pointers to 0

0 is not a pointer. So do not compare pointers to 0.

Do not return 0 from functions with a pointer return
type.

Problem identified with Coccinelle.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/dlmalloc.c