1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-08-30 15:52:19 +02:00
Files
u-boot-megous/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
..