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>
This commit is contained in:
Heinrich Schuchardt 2020-04-20 12:44:01 +02:00 committed by Tom Rini
parent dd786d4c4c
commit 077e72c6e6
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}