aboutsummaryrefslogtreecommitdiff
path: root/src/flash/cfi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/cfi.c')
-rw-r--r--src/flash/cfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/cfi.c b/src/flash/cfi.c
index 66b94c96..7ba93718 100644
--- a/src/flash/cfi.c
+++ b/src/flash/cfi.c
@@ -1448,7 +1448,7 @@ static int cfi_spansion_write_block(struct flash_bank_s *bank, uint8_t *buffer,
armv4_5_info.core_state = ARMV4_5_STATE_ARM;
/* flash write code */
- int target_code_size;
+ int target_code_size = 0;
if (!cfi_info->write_algorithm)
{
uint8_t *target_code;