summaryrefslogtreecommitdiffstats
path: root/it87spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'it87spi.c')
-rw-r--r--it87spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/it87spi.c b/it87spi.c
index f8b2b0ffb..f5955fe6c 100644
--- a/it87spi.c
+++ b/it87spi.c
@@ -281,7 +281,6 @@ static int it8716f_spi_send_command(struct flashctx *flash,
unsigned char *readarr)
{
uint8_t busy, writeenc;
- int i;
do {
busy = INB(it8716f_flashport) & 0x80;
@@ -330,6 +329,8 @@ static int it8716f_spi_send_command(struct flashctx *flash,
| ((readcnt & 0x3) << 2) | (writeenc), it8716f_flashport);
if (readcnt > 0) {
+ unsigned int i;
+
do {
busy = INB(it8716f_flashport) & 0x80;
} while (busy);