1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

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

4
env/flash.c vendored
View File

@@ -94,7 +94,7 @@ static int env_flash_init(void)
gd->env_valid = ENV_VALID;
} else if (!crc1_ok && !crc2_ok) {
gd->env_addr = addr_default;
gd->env_valid = 0;
gd->env_valid = ENV_INVALID;
} else if (flag1 == ACTIVE_FLAG && flag2 == OBSOLETE_FLAG) {
gd->env_addr = addr1;
gd->env_valid = ENV_VALID;
@@ -231,7 +231,7 @@ static int env_flash_init(void)
}
gd->env_addr = (ulong)&default_environment[0];
gd->env_valid = 0;
gd->env_valid = ENV_INVALID;
return 0;
}
#endif