-
由 Tom Rini 提交于
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: NMarek Vasut <marek.vasut@gmail.com> Reported-by: NMarek Vasut <marek.vasut@gmail.com> Reported-by: NAndy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: NTom Rini <trini@konsulko.com> --- Changes in v3: - Actually include changes for env/nowhere.c
eeba55cb