diff options
Diffstat (limited to 'common/nvmem.c')
-rw-r--r-- | common/nvmem.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/common/nvmem.c b/common/nvmem.c index b4c82d0154..1c911ccddf 100644 --- a/common/nvmem.c +++ b/common/nvmem.c @@ -5,9 +5,7 @@ #include "common.h" #include "console.h" -#ifndef TEST_BUILD #include "dcrypto.h" -#endif #include "flash.h" #include "nvmem.h" #include "task.h" @@ -111,13 +109,12 @@ static int nvmem_save(void) uint8_t sha_comp[NVMEM_SHA_SIZE]; int rv = EC_SUCCESS; -#ifndef TEST_BUILD if (!DCRYPTO_ladder_is_enabled()) { CPRINTF("%s: Key ladder is disabled. Skipping flash write\n", __func__); goto release_cache; } -#endif + part = (struct nvmem_partition *)nvmem_cache; /* Has anything changed in the cache? */ |