Skip to content

Commit 22999d2

Browse files
committed
Removed unused variables
1 parent 37326c4 commit 22999d2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/update_flash.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,13 @@ static int RAMFUNCTION wolfBoot_backup_last_boot_sector(uint32_t sector)
239239
/* Erase swap space */
240240
wb_flash_erase(dst, dst_sector_offset, WOLFBOOT_SECTOR_SIZE);
241241
if (PART_IS_EXT(dst)) {
242-
uint32_t sz = 0;
243-
uint32_t step = 0;
244242
uint8_t *orig = (uint8_t *)(WOLFBOOT_PARTITION_BOOT_ADDRESS) +
245243
src_sector_offset;
246244
while (pos < WOLFBOOT_SECTOR_SIZE) {
247245
uint32_t len = ENCRYPT_BLOCK_SIZE;
248246
XMEMCPY(block, orig + pos, ENCRYPT_BLOCK_SIZE);
249247
crypto_encrypt(encrypted_block, block, ENCRYPT_BLOCK_SIZE);
250248
wb_flash_write(dst, dst_sector_offset + pos, encrypted_block, ENCRYPT_BLOCK_SIZE);
251-
step++;
252249
pos += ENCRYPT_BLOCK_SIZE;
253250
}
254251
return 0;

0 commit comments

Comments
 (0)