From 2d7cb5b426e7e0cdf684d7f8029ad132d7a8d383 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 20 Aug 2017 04:45:15 -0600 Subject: 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 --- env/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'env/env.c') diff --git a/env/env.c b/env/env.c index 1255d57..43290d0 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; -- cgit v1.1