commit | a874cac3b45cbb6dd8bad05a5b42912acae6b7e4 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Fri Nov 10 21:46:34 2017 +0100 |
committer | Tom Rini <trini@konsulko.com> | Mon Nov 20 20:18:39 2017 -0500 |
tree | 804e5cc613e40dc79efdfb24fa4b31a301017299 | |
parent | 06feb5d0bf9953c6918d0e35feef64521c5236c4 [diff] |
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>