]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - env/nvram.c
env: Adjust the load() method to return an error
[people/ms/u-boot.git] / env / nvram.c
index 85af37d4a0540fd51dfce4c099c4bc297b751a64..5fb3115ce65af3db82429e8311c3d507adc6fa47 100644 (file)
@@ -51,7 +51,7 @@ static int env_nvram_get_char(int index)
 }
 #endif
 
-static void env_nvram_load(void)
+static int env_nvram_load(void)
 {
        char buf[CONFIG_ENV_SIZE];
 
@@ -61,6 +61,8 @@ static void env_nvram_load(void)
        memcpy(buf, (void *)CONFIG_ENV_ADDR, CONFIG_ENV_SIZE);
 #endif
        env_import(buf, 1);
+
+       return 0;
 }
 
 static int env_nvram_save(void)