aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flash/nor/str9x.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/flash/nor/str9x.c b/src/flash/nor/str9x.c
index 61a438fc..63cfd18f 100644
--- a/src/flash/nor/str9x.c
+++ b/src/flash/nor/str9x.c
@@ -280,6 +280,9 @@ static int str9x_erase(struct flash_bank *bank, int first, int last)
total_timeout = 1000;
}
+ /* this is so the compiler can *know* */
+ assert(total_timeout > 0);
+
for (i = first; i <= last; i++)
{
int retval;