aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/ath79.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/ath79.c')
-rw-r--r--src/flash/nor/ath79.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/ath79.c b/src/flash/nor/ath79.c
index 1d1ec02..7ce42b2 100644
--- a/src/flash/nor/ath79.c
+++ b/src/flash/nor/ath79.c
@@ -513,7 +513,7 @@ static int ath79_erase(struct flash_bank *bank, unsigned int first,
if (ath79_info->dev->erase_cmd == 0x00)
return ERROR_FLASH_OPER_UNSUPPORTED;
- for (unsigned sector = first; sector <= last; sector++) {
+ for (unsigned int sector = first; sector <= last; sector++) {
if (bank->sectors[sector].is_protected) {
LOG_ERROR("Flash sector %u protected", sector);
return ERROR_FAIL;