mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
flash_init: remove empty function from all stages
This commit is contained in:
parent
167d476fff
commit
fc7b1cfe81
@ -165,7 +165,6 @@ int main(void)
|
||||
periph_init();
|
||||
|
||||
ensure(0 == display_init(), NULL);
|
||||
ensure(0 == flash_init(), NULL);
|
||||
ensure(0 == sdcard_init(), NULL);
|
||||
|
||||
if (check_sdcard()) {
|
||||
|
@ -155,7 +155,6 @@ int usb_init_all(void) {
|
||||
|
||||
bool bootloader_loop(void)
|
||||
{
|
||||
ensure(0 == flash_init(), NULL);
|
||||
ensure(0 == usb_init_all(), NULL);
|
||||
|
||||
display_clear();
|
||||
|
@ -27,7 +27,6 @@ int main(void)
|
||||
|
||||
display_orientation(0);
|
||||
|
||||
ensure(0 == flash_init(), NULL);
|
||||
ensure(0 == sdcard_init(), NULL);
|
||||
ensure(0 == touch_init(), NULL);
|
||||
|
||||
|
@ -35,11 +35,6 @@ static const uint32_t SECTOR_TABLE[SECTOR_COUNT + 1] = {
|
||||
[24] = 0x08200000, // last element - not a valid sector
|
||||
};
|
||||
|
||||
int flash_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool flash_unlock(void)
|
||||
{
|
||||
HAL_FLASH_Unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user