Skip to content

Commit 83873db

Browse files
committed
Removed unused variable
1 parent 22999d2 commit 83873db

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/update_flash.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ static int RAMFUNCTION wolfBoot_backup_last_boot_sector(uint32_t sector)
242242
uint8_t *orig = (uint8_t *)(WOLFBOOT_PARTITION_BOOT_ADDRESS) +
243243
src_sector_offset;
244244
while (pos < WOLFBOOT_SECTOR_SIZE) {
245-
uint32_t len = ENCRYPT_BLOCK_SIZE;
246245
XMEMCPY(block, orig + pos, ENCRYPT_BLOCK_SIZE);
247246
crypto_encrypt(encrypted_block, block, ENCRYPT_BLOCK_SIZE);
248247
wb_flash_write(dst, dst_sector_offset + pos, encrypted_block, ENCRYPT_BLOCK_SIZE);

0 commit comments

Comments
 (0)