Skip to content

Commit b59d931

Browse files
committed
remove sector alignment check
1 parent 88163ad commit b59d931

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/libwolfboot.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,6 @@ void RAMFUNCTION wolfBoot_update_trigger(void)
740740
uint8_t selSec = 0;
741741
#endif
742742

743-
/* if PART_UPDATE_ENDFLAGS straddles a sector, (all non FLAGS_HOME builds)
744-
* align it to the correct sector */
745-
if (PART_UPDATE_ENDFLAGS % WOLFBOOT_SECTOR_SIZE == 0)
746-
lastSector -= WOLFBOOT_SECTOR_SIZE;
747-
748743
/* erase the sector flags */
749744
if (FLAGS_UPDATE_EXT()) {
750745
ext_flash_unlock();

0 commit comments

Comments
 (0)