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:
parent
c663545951
commit
b7bcd21d2d
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user