summaryrefslogtreecommitdiff
path: root/env/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'env/flash.c')
-rw-r--r--env/flash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/env/flash.c b/env/flash.c
index bac10ff985..ccade77ce3 100644
--- a/env/flash.c
+++ b/env/flash.c
@@ -351,9 +351,7 @@ static int env_flash_load(void)
"reading environment; recovered successfully\n\n");
#endif /* CONFIG_ENV_ADDR_REDUND */
- env_import((char *)flash_addr, 1);
-
- return 0;
+ return env_import((char *)flash_addr, 1);
}
#endif /* LOADENV */