mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
env: Drop the env_name_spec global
Add a name to the driver and use that instead of the global variable declared by each driver. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
7938822a6b
commit
ac358beb85
17 changed files with 32 additions and 32 deletions
|
@ -706,7 +706,9 @@ ulong getenv_ulong(const char *name, int base, ulong default_val)
|
|||
static int do_env_save(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
{
|
||||
printf("Saving Environment to %s...\n", env_name_spec);
|
||||
struct env_driver *env = env_driver_lookup_default();
|
||||
|
||||
printf("Saving Environment to %s...\n", env->name);
|
||||
|
||||
return saveenv() ? 1 : 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue