diff options
author | Heinrich Schuchardt | 2020-04-20 12:44:01 +0200 |
---|---|---|
committer | Tom Rini | 2020-04-24 16:40:09 -0400 |
commit | 077e72c6e6266a215cdbb8bfb07d791cb9c070ec (patch) | |
tree | 6afc1e87ee9b194269a8a207a53851bf779805d2 /common | |
parent | dd786d4c4c0869625e76b8cef32539473529ecd2 (diff) |
spl: fit: do not check argument of free()
The free() function checks if its argument is NULL. It is superfluous to do
the same check on the calling side.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/spl_fit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 69dabd27f6d..c51e4beb1c0 100644 --- a/common/spl/spl_fit.c +++ b/common/spl/spl_fit.c @@ -425,8 +425,7 @@ static int spl_fit_append_fdt(struct spl_image_info *spl_image, debug("%s: DT overlay %s applied\n", __func__, fit_get_name(fit, node, NULL)); } - if (tmpbuffer) - free(tmpbuffer); + free(tmpbuffer); if (ret) return ret; } |