aboutsummaryrefslogtreecommitdiff
path: root/env/sf.c
diff options
context:
space:
mode:
Diffstat (limited to 'env/sf.c')
-rw-r--r--env/sf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/env/sf.c b/env/sf.c
index 2eb2de1..91ed286 100644
--- a/env/sf.c
+++ b/env/sf.c
@@ -393,10 +393,12 @@ static int env_sf_init(void)
return env_sf_init_early();
#endif
/*
- * we must return with 0 if there is nothing done,
- * else env_set_inited() get not called in env_init()
+ * return here -ENOENT, so env_init()
+ * can set the init bit and later if no
+ * other Environment storage is defined
+ * can set the default environment
*/
- return 0;
+ return -ENOENT;
}
U_BOOT_ENV_LOCATION(sf) = {