u-boot-brain/scripts/coccinelle
Heinrich Schuchardt c11f0d88ba coccinelle: adjust NULL check before free()
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@gmx.de>
2020-04-24 16:40:09 -04:00
..
api/alloc coccinelle: check for casting malloc output 2020-04-24 16:40:09 -04:00
free coccinelle: adjust NULL check before free() 2020-04-24 16:40:09 -04:00
iterators scripts/coccinelle: add some more coccinelle tests 2017-11-20 20:18:39 -05:00
misc scripts/coccinelle: add some more coccinelle tests 2017-11-20 20:18:39 -05:00
net scripts: Add a cocci patch for miiphy_register 2016-08-15 15:26:23 -05:00
null scripts/coccinelle: add some more coccinelle tests 2018-03-09 12:31:07 -05:00