summaryrefslogtreecommitdiff
path: root/env/env.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-08-20 04:45:15 -0600
committerTom Rini <trini@konsulko.com>2017-08-20 19:27:44 -0400
commit2d7cb5b426e7e0cdf684d7f8029ad132d7a8d383 (patch)
treed065adc9532ed66f8fde2109f679d2d8f155d02d /env/env.c
parentc55d8b940047050176ded2e24be74f4a97e093e3 (diff)
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>
Diffstat (limited to 'env/env.c')
-rw-r--r--env/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env/env.c b/env/env.c
index 1255d57f48..43290d0832 100644
--- a/env/env.c
+++ b/env/env.c
@@ -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;