From 9749cb070b83b5376bbf7e547259ad8e2a3a9d7b Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 4 Oct 2018 17:30:37 +0200 Subject: [PATCH] storage: setNoBackup does not have to have parameter --- firmware/reset.c | 2 +- firmware/storage.c | 4 ++-- firmware/storage.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/reset.c b/firmware/reset.c index 542f815cb..293f4a90f 100644 --- a/firmware/reset.c +++ b/firmware/reset.c @@ -91,7 +91,7 @@ void reset_entropy(const uint8_t *ext_entropy, uint32_t len) sha256_Update(&ctx, ext_entropy, len); sha256_Final(&ctx, int_entropy); if (no_backup) { - storage_setNoBackup(true); + storage_setNoBackup(); } else if (skip_backup) { storage_setNeedsBackup(true); diff --git a/firmware/storage.c b/firmware/storage.c index d088dcded..df4a7de2c 100644 --- a/firmware/storage.c +++ b/firmware/storage.c @@ -858,10 +858,10 @@ bool storage_noBackup(void) : storageRom->has_no_backup && storageRom->no_backup; } -void storage_setNoBackup(bool no_backup) +void storage_setNoBackup(void) { storageUpdate.has_no_backup = true; - storageUpdate.no_backup = no_backup; + storageUpdate.no_backup = true; } void storage_applyFlags(uint32_t flags) diff --git a/firmware/storage.h b/firmware/storage.h index 16f690591..572b55edd 100644 --- a/firmware/storage.h +++ b/firmware/storage.h @@ -144,7 +144,7 @@ bool storage_unfinishedBackup(void); void storage_setUnfinishedBackup(bool unfinished_backup); bool storage_noBackup(void); -void storage_setNoBackup(bool no_backup); +void storage_setNoBackup(void); void storage_applyFlags(uint32_t flags); uint32_t storage_getFlags(void);