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:
parent
dd786d4c4c
commit
077e72c6e6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user