summaryrefslogtreecommitdiff
path: root/env/flash.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-10-31 15:48:43 -0400
committerTom Rini <trini@konsulko.com>2021-10-31 15:48:43 -0400
commit360e392274e3bfeda3b7226d2cac7514774d0da1 (patch)
tree2f3608441e5fbbd43a9f5e3e51926ed352a2e838 /env/flash.c
parent77680d8f85b94ffe690b8fe1f35767aef8b1415a (diff)
parentb55881ddb455af31b64038cf3b67f781909971cc (diff)
Merge tag 'dm-pull-boo21' of https://source.denx.de/u-boot/custodians/u-boot-dm
Environment tidy-ups patman 'postfix' support fix binman test race condition causing a timeout error # gpg: Signature made Sun 31 Oct 2021 03:36:55 PM EDT # gpg: using RSA key B25C0022AF86A7CC1655B6277F173A3E9008ADE6 # gpg: issuer "sjg@chromium.org" # gpg: Good signature from "Simon Glass <sjg@chromium.org>" [unknown] # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: B25C 0022 AF86 A7CC 1655 B627 7F17 3A3E 9008 ADE6
Diffstat (limited to 'env/flash.c')
-rw-r--r--env/flash.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/env/flash.c b/env/flash.c
index 473e82454de..9c8abfa016c 100644
--- a/env/flash.c
+++ b/env/flash.c
@@ -77,7 +77,6 @@ static int env_flash_init(void)
uchar flag1 = flash_addr->flags;
uchar flag2 = flash_addr_new->flags;
- ulong addr_default = (ulong)&default_environment[0];
ulong addr1 = (ulong)&(flash_addr->data);
ulong addr2 = (ulong)&(flash_addr_new->data);
@@ -92,7 +91,6 @@ static int env_flash_init(void)
gd->env_addr = addr2;
gd->env_valid = ENV_VALID;
} else if (!crc1_ok && !crc2_ok) {
- gd->env_addr = addr_default;
gd->env_valid = ENV_INVALID;
} else if (flag1 == ENV_REDUND_ACTIVE &&
flag2 == ENV_REDUND_OBSOLETE) {
@@ -230,8 +228,7 @@ static int env_flash_init(void)
return 0;
}
- gd->env_addr = (ulong)&default_environment[0];
- gd->env_valid = ENV_INVALID;
+ gd->env_valid = ENV_INVALID;
return 0;
}
#endif