git: b7bcd21d2da5 - main - rk_i2c_fill_tx: fixup previous commit

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Wed, 15 Dec 2021 11:22:12 UTC
The branch main has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=b7bcd21d2da50364a512092cb4e75f2d53070ba6

commit b7bcd21d2da50364a512092cb4e75f2d53070ba6
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-12-15 11:20:08 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2021-12-15 11:21:16 +0000

    rk_i2c_fill_tx: fixup previous commit
    
    I forgot to amend the previous commit where i was uninitialized.
    
    Fixes:          c6635459510c rk_i2c_fill_tx: fix a number of issues
    MFC after:      1 week
---
 sys/arm64/rockchip/rk_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm64/rockchip/rk_i2c.c b/sys/arm64/rockchip/rk_i2c.c
index 67178f615b0a..ffe6f17ee0ac 100644
--- a/sys/arm64/rockchip/rk_i2c.c
+++ b/sys/arm64/rockchip/rk_i2c.c
@@ -226,7 +226,7 @@ rk_i2c_fill_tx(struct rk_i2c_softc *sc)
 	if (len > RK_I2C_MAX_RXTX_LEN)
 		len = RK_I2C_MAX_RXTX_LEN;
 
-	while (i < len) {
+	for (i = 0; i < len; ) {
 		buf32 = 0;
 
 		/* Process next 4 bytes or whatever remains. */