summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/st_smi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/st_smi.c b/drivers/mtd/st_smi.c
index 2c6d59d..088c7c7 100644
--- a/drivers/mtd/st_smi.c
+++ b/drivers/mtd/st_smi.c
@@ -187,7 +187,7 @@ static int smi_wait_till_ready(int bank, int timeout)
do {
sr = smi_read_sr(bank);
if (sr < 0)
- break;
+ continue; /* try until timeout */
else if (!(sr & WIP_BIT))
return 0;