summaryrefslogtreecommitdiff
path: root/env/eeprom.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/eeprom.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/eeprom.c')
-rw-r--r--env/eeprom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/env/eeprom.c b/env/eeprom.c
index 08ef6307fc..584379ebd2 100644
--- a/env/eeprom.c
+++ b/env/eeprom.c
@@ -122,7 +122,7 @@ static int env_eeprom_load(void)
if (!crc_ok[0] && !crc_ok[1]) {
gd->env_addr = 0;
- gd->env_valid = 0;
+ gd->env_valid = ENV_INVALID;
} else if (crc_ok[0] && !crc_ok[1]) {
gd->env_valid = ENV_VALID;
} else if (!crc_ok[0] && crc_ok[1]) {
@@ -166,9 +166,9 @@ static int env_eeprom_load(void)
}
if (crc == new) {
- gd->env_valid = ENV_VALID;
+ gd->env_valid = ENV_VALID;
} else {
- gd->env_valid = 0;
+ gd->env_valid = ENV_INVALID;
}
#endif /* CONFIG_ENV_OFFSET_REDUND */