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:
Simon Glass
2017-08-03 12:22:08 -06:00
committed by Tom Rini
parent 310fb14b26
commit 01510091de
9 changed files with 20 additions and 15 deletions

View File

@@ -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();
}
}