projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e659f36
)
i2c: sh_mobile: replace break; with if-block
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Wed, 16 Jan 2019 21:05:53 +0000
(22:05 +0100)
committer
Wolfram Sang
<wsa@the-dreams.de>
Tue, 22 Jan 2019 23:18:09 +0000
(
00:18
+0100)
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>
drivers/i2c/busses/i2c-sh_mobile.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-sh_mobile.c
b/drivers/i2c/busses/i2c-sh_mobile.c
index
ef9101c
..
ab6969e
100644
(file)
--- a/
drivers/i2c/busses/i2c-sh_mobile.c
+++ b/
drivers/i2c/busses/i2c-sh_mobile.c
@@
-394,11
+394,10
@@
static int sh_mobile_i2c_isr_rx(struct sh_mobile_i2c_data *pd)
break;
}
- if (real_pos < 0)
{
+ if (real_pos < 0)
i2c_op(pd, OP_RX_STOP);
- break;
- }
- data = i2c_op(pd, OP_RX_STOP_DATA);
+ else
+ data = i2c_op(pd, OP_RX_STOP_DATA);
} else if (real_pos >= 0) {
data = i2c_op(pd, OP_RX);
}