diff options
author | Simon Glass | 2017-08-20 04:45:15 -0600 |
---|---|---|
committer | Tom Rini | 2017-08-20 19:27:44 -0400 |
commit | 2d7cb5b426e7e0cdf684d7f8029ad132d7a8d383 (patch) | |
tree | d065adc9532ed66f8fde2109f679d2d8f155d02d /env/env.c | |
parent | c55d8b940047050176ded2e24be74f4a97e093e3 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/env/env.c b/env/env.c index 1255d57f48d..43290d08321 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; |