mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
i2c: synquacer: fix fence-post error in retry loop
There is a difference between attempts and retries. Signed-off-by: Peter Rosin <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
8e03477cb7
commit
5e87270bec
1 changed files with 1 additions and 1 deletions
|
|
@ -509,7 +509,7 @@ static int synquacer_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
|
|||
|
||||
dev_dbg(i2c->dev, "calculated timeout %d ms\n", i2c->timeout_ms);
|
||||
|
||||
for (retry = 0; retry < adap->retries; retry++) {
|
||||
for (retry = 0; retry <= adap->retries; retry++) {
|
||||
ret = synquacer_i2c_doxfer(i2c, msgs, num);
|
||||
if (ret != -EAGAIN)
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue