[PATCH] coccinelle: adjust NULL check before free()

Tom Rini trini at konsulko.com
Sun Apr 26 13:27:29 CEST 2020

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 <xypron.glpk at gmx.de>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200426/ca1a6016/attachment.sig>

More information about the U-Boot mailing list