Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
user avatar
Tom Rini authored
With the change to the environment code to remove the common init stage
of pointing to the default environment and setting it as valid, combined
with the change to switch gd->env_valid from 0/1/2 to an enum we now
must set env_valid to one of the enum values rather than an int.  And in
this case, not only was setting it to an int wrong, it was now the wrong
value.  Finally, in the case of ENV_IS_NOWHERE we must still say that
our envionrment is invalid after init for things to continue to
function.

Fixes: 7938822a ("env: Drop common init() functions")
Tested-by: default avatarMarek Vasut <marek.vasut@gmail.com>
Reported-by: default avatarMarek Vasut <marek.vasut@gmail.com>
Reported-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
---
Changes in v3:
- Actually include changes for env/nowhere.c
eeba55cb
History
Name Last commit Last update