[U-Boot] [U-Boot,v2,1/1] malloc: don't compare pointers to 0

Tom Rini trini at konsulko.com
Tue Nov 21 13:05:50 UTC 2017


On Fri, Nov 10, 2017 at 09:46:34PM +0100, Heinrich Schuchardt wrote:

> 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 at gmx.de>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171121/d3ede1f5/attachment.sig>


More information about the U-Boot mailing list