summaryrefslogtreecommitdiff
path: root/env/nvram.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/nvram.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/nvram.c')
-rw-r--r--env/nvram.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/env/nvram.c b/env/nvram.c
index 261b31edfbb..fb265235afc 100644
--- a/env/nvram.c
+++ b/env/nvram.c
@@ -87,15 +87,14 @@ static int env_nvram_init(void)
nvram_read(data, CONFIG_ENV_ADDR + sizeof(ulong), ENV_SIZE);
if (crc32(0, data, ENV_SIZE) == crc) {
- gd->env_addr = (ulong)CONFIG_ENV_ADDR + sizeof(long);
+ gd->env_addr = (ulong)CONFIG_ENV_ADDR + sizeof(long);
#else
if (crc32(0, env_ptr->data, ENV_SIZE) == env_ptr->crc) {
- gd->env_addr = (ulong)&env_ptr->data;
+ gd->env_addr = (ulong)&env_ptr->data;
#endif
gd->env_valid = ENV_VALID;
} else {
- gd->env_addr = (ulong)&default_environment[0];
- gd->env_valid = ENV_INVALID;
+ gd->env_valid = ENV_INVALID;
}
return 0;