From: Tom Rini Date: Tue, 21 Nov 2017 08:05:50 -0500 Subject: [U-Boot] [U-Boot,v2,1/1] malloc: don't compare pointers to 0 In-Reply-To: <20171110204634.20515-1-xypron.glpk@gmx.de> References: <20171110204634.20515-1-xypron.glpk@gmx.de> Message-ID: <20171121130550.GF10194@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Bin Meng 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: