aboutsummaryrefslogtreecommitdiff
path: root/ks_flash.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-09-12 02:06:18 -0400
committerRob Austein <sra@hactrn.net>2016-09-12 02:06:18 -0400
commit73d62a85a904b64e259d523dadb45ad4ee8e2c2f (patch)
tree69c99517d643e0aabc066633db953e8ed099be4f /ks_flash.c
parent421626cdc49cab03f9b4071ee9e836f8d095aa20 (diff)
Doh, allow keystore reinitialization after unclean reboot.
Diffstat (limited to 'ks_flash.c')
-rw-r--r--ks_flash.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ks_flash.c b/ks_flash.c
index c9c37b8..fdc800f 100644
--- a/ks_flash.c
+++ b/ks_flash.c
@@ -102,9 +102,6 @@ static inline uint32_t _get_key_offset(uint32_t num)
static hal_error_t ks_init(const hal_ks_driver_t * const driver)
{
- if (db.ks.driver != NULL)
- return HAL_ERROR_KEYSTORE_ACCESS;
-
uint8_t page_buf[KEYSTORE_PAGE_SIZE];
uint32_t idx = 0; /* Current index into db.keys[] */