display5: spl: Check return code of the env_* functions

Force booting through u-boot proper when environment error encountered
(as a result of either broken SPI-NOR or erased envs).

Signed-off-by: Lukasz Majewski <lukma@denx.de>
lime2-spi
Lukasz Majewski 6 years ago committed by Stefano Babic
parent 2f4372a101
commit e087905a48
  1. 4
      board/liebherr/display5/spl.c

@ -210,8 +210,8 @@ void board_boot_order(u32 *spl_boot_list)
/* 'fastboot' */
const char *s;
env_init();
env_load();
if (env_init() || env_load())
return;
s = env_get("BOOT_FROM");
if (s && !bootcount_error() && strcmp(s, "ACTIVE") == 0) {

Loading…
Cancel
Save