i2c: sh_mobile: replace break; with if-block
In preparation to remove the do-while-loop. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
e659f36d46
commit
0130e3bfa9
|
@ -394,11 +394,10 @@ static int sh_mobile_i2c_isr_rx(struct sh_mobile_i2c_data *pd)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (real_pos < 0) {
|
if (real_pos < 0)
|
||||||
i2c_op(pd, OP_RX_STOP);
|
i2c_op(pd, OP_RX_STOP);
|
||||||
break;
|
else
|
||||||
}
|
data = i2c_op(pd, OP_RX_STOP_DATA);
|
||||||
data = i2c_op(pd, OP_RX_STOP_DATA);
|
|
||||||
} else if (real_pos >= 0) {
|
} else if (real_pos >= 0) {
|
||||||
data = i2c_op(pd, OP_RX);
|
data = i2c_op(pd, OP_RX);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue