From b7bcd21d2da50364a512092cb4e75f2d53070ba6 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Wed, 15 Dec 2021 13:20:08 +0200 Subject: [PATCH] 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. */