env: Drop saveenv() in favour of env_save()
Use the env_save() function directly now that there is only one implementation of saveenv(). Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Wolfgang Denk <wd@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <environment.h>
|
||||
|
||||
void bootcount_store(ulong a)
|
||||
{
|
||||
@@ -13,7 +14,7 @@ void bootcount_store(ulong a)
|
||||
|
||||
if (upgrade_available) {
|
||||
setenv_ulong("bootcount", a);
|
||||
saveenv();
|
||||
env_save();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user