env: Replace all open-coded gd->env_valid values with ENV_ flags

Some of these were missed in the conversion.
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2017-08-20 04:45:15 -06:00
committed by Tom Rini
parent c55d8b9400
commit 2d7cb5b426
6 changed files with 18 additions and 18 deletions

2
env/env.c vendored
View File

@@ -74,7 +74,7 @@ int env_get_char(int index)
struct env_driver *drv = env_driver_lookup_default();
int ret;
if (!gd->env_valid)
if (gd->env_valid == ENV_INVALID)
return default_environment[index];
if (!drv)
return -ENODEV;