From: Tom Rini Date: Sun, 26 Apr 2020 07:27:29 -0400 Subject: [PATCH] coccinelle: adjust NULL check before free() In-Reply-To: <20200419095602.19393-1-xypron.glpk@gmx.de> References: <20200419095602.19393-1-xypron.glpk@gmx.de> Message-ID: <20200426112729.GB4555@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 Sun, Apr 19, 2020 at 11:56:02AM +0200, Heinrich Schuchardt wrote: > The free() function checks if its argument is NULL. We should avoid > checking for NULL before calling free like in > > ????if (result->tds) > ????????free(result->tds); > > The list of relevant functions differs between Linux and U-Boot, e.g. we > use free(). > > Adjust the list of relevant functions. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: