1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 23:40:58 +00:00

fix(core): small secbool refactor for bootloader_ci

This commit is contained in:
Pavol Rusnak 2021-03-04 12:14:26 +01:00
parent 2dc094bd3e
commit b074404dcf
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -228,11 +228,10 @@ int main(void) {
vendor_header vhdr;
image_header hdr;
secbool firmware_present;
// detect whether the devices contains a valid firmware
firmware_present =
secbool firmware_present =
load_vendor_header_keys((const uint8_t *)FIRMWARE_START, &vhdr);
if (sectrue == firmware_present) {
firmware_present = check_vendor_keys_lock(&vhdr);