rk_i2c_fill_tx: fixup previous commit

I forgot to amend the previous commit where i was uninitialized.

Fixes:		c663545951 rk_i2c_fill_tx: fix a number of issues
MFC after:	1 week
This commit is contained in:
Andriy Gapon 2021-12-15 13:20:08 +02:00
parent c663545951
commit b7bcd21d2d

View File

@ -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. */