1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

storage: setNoBackup does not have to have parameter

This commit is contained in:
Pavol Rusnak 2018-10-04 17:30:37 +02:00
parent 4a0f0259d1
commit 9749cb070b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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);