1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-08-05 13:26:57 +00:00

fix(core): Remove initialized check from backup ram erase function [no changelog]

This commit is contained in:
kopecdav 2025-04-28 13:02:12 +02:00 committed by kopecdav
parent 5ae5d97328
commit eea75534e5

View File

@ -122,10 +122,6 @@ void backup_ram_deinit(void) {
backup_ram_status_t backup_ram_erase(void) {
backup_ram_driver_t *drv = &backup_ram_driver;
if (!drv->initialized) {
return BACKUP_RAM_ERROR;
}
HAL_StatusTypeDef status = HAL_RAMCFG_Erase(&drv->hramcfg);
if (status != HAL_OK) {
return BACKUP_RAM_ERROR;