mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
xilinx: common: Check return value from variable setup
env_set..() can failed that's why check return status and report it back to make sure that user is aware that's something went wrong. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
653809f43f
commit
ca0f616530
1 changed files with 8 additions and 3 deletions
|
@ -77,10 +77,15 @@ void *board_fdt_blob_setup(void)
|
||||||
|
|
||||||
int board_late_init_xilinx(void)
|
int board_late_init_xilinx(void)
|
||||||
{
|
{
|
||||||
env_set_hex("script_offset_f", CONFIG_BOOT_SCRIPT_OFFSET);
|
u32 ret = 0;
|
||||||
|
|
||||||
env_set_addr("bootm_low", (void *)gd->ram_base);
|
ret |= env_set_hex("script_offset_f", CONFIG_BOOT_SCRIPT_OFFSET);
|
||||||
env_set_addr("bootm_size", (void *)gd->ram_size);
|
|
||||||
|
ret |= env_set_addr("bootm_low", (void *)gd->ram_base);
|
||||||
|
ret |= env_set_addr("bootm_size", (void *)gd->ram_size);
|
||||||
|
|
||||||
|
if (ret)
|
||||||
|
printf("%s: Saving run time variables FAILED\n", __func__);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue