mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 15:10:26 +09:00
mmc: fsl_esdhc_spl: remove superfluous free()
Freeing a buffer before calling hang() is superfluous. Removing the call reduces the SPL size. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
parent
1396e41c1f
commit
f11b38e3ae
@ -91,20 +91,17 @@ void __noreturn mmc_boot(void)
|
|||||||
CONFIG_CFG_DATA_SECTOR, 1, tmp_buf);
|
CONFIG_CFG_DATA_SECTOR, 1, tmp_buf);
|
||||||
if (err != 1) {
|
if (err != 1) {
|
||||||
puts("spl: mmc read failed!!\n");
|
puts("spl: mmc read failed!!\n");
|
||||||
free(tmp_buf);
|
|
||||||
hang();
|
hang();
|
||||||
}
|
}
|
||||||
|
|
||||||
val = *(tmp_buf + MBRDBR_BOOT_SIG_55);
|
val = *(tmp_buf + MBRDBR_BOOT_SIG_55);
|
||||||
if (0x55 != val) {
|
if (0x55 != val) {
|
||||||
puts("spl: mmc signature is not valid!!\n");
|
puts("spl: mmc signature is not valid!!\n");
|
||||||
free(tmp_buf);
|
|
||||||
hang();
|
hang();
|
||||||
}
|
}
|
||||||
val = *(tmp_buf + MBRDBR_BOOT_SIG_AA);
|
val = *(tmp_buf + MBRDBR_BOOT_SIG_AA);
|
||||||
if (0xAA != val) {
|
if (0xAA != val) {
|
||||||
puts("spl: mmc signature is not valid!!\n");
|
puts("spl: mmc signature is not valid!!\n");
|
||||||
free(tmp_buf);
|
|
||||||
hang();
|
hang();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user