commit | c11f0d88ba462976335a4990a30a99d1d0b49195 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sun Apr 19 11:56:02 2020 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri Apr 24 16:40:09 2020 -0400 |
tree | 5c76d1640a2d27dff9dc61b2aa098e277fa992c3 | |
parent | cb2a2ebd4f93220936de721918ed9a3ca57cc5db [diff] |
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>