commit | 2d7cb5b426e7e0cdf684d7f8029ad132d7a8d383 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Aug 20 04:45:15 2017 -0600 |
committer | Tom Rini <trini@konsulko.com> | Sun Aug 20 19:27:44 2017 -0400 |
tree | d065adc9532ed66f8fde2109f679d2d8f155d02d | |
parent | c55d8b940047050176ded2e24be74f4a97e093e3 [diff] [blame] |
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>
diff --git a/env/nand.c b/env/nand.c index dea7b00..8058b55 100644 --- a/env/nand.c +++ b/env/nand.c
@@ -79,7 +79,7 @@ if (!crc1_ok && !crc2_ok) { gd->env_addr = 0; - gd->env_valid = 0; + gd->env_valid = ENV_INVALID; return 0; } else if (crc1_ok && !crc2_ok) {