aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/dsp5680xx_flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/dsp5680xx_flash.c')
-rw-r--r--src/flash/nor/dsp5680xx_flash.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/flash/nor/dsp5680xx_flash.c b/src/flash/nor/dsp5680xx_flash.c
index 5e8eec3..858b669 100644
--- a/src/flash/nor/dsp5680xx_flash.c
+++ b/src/flash/nor/dsp5680xx_flash.c
@@ -45,14 +45,11 @@
static int dsp5680xx_build_sector_list(struct flash_bank *bank)
{
- uint32_t offset = HFM_FLASH_BASE_ADDR;
-
bank->sectors = malloc(sizeof(struct flash_sector) * bank->num_sectors);
for (unsigned int i = 0; i < bank->num_sectors; ++i) {
bank->sectors[i].offset = i * HFM_SECTOR_SIZE;
bank->sectors[i].size = HFM_SECTOR_SIZE;
- offset += bank->sectors[i].size;
bank->sectors[i].is_erased = -1;
bank->sectors[i].is_protected = -1;
}