projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47bb8f7
)
i2c: meson: remove variable count from meson_i2c_xfer
author
Heiner Kallweit
<
[email protected]
>
Sat, 25 Mar 2017 13:09:03 +0000
(14:09 +0100)
committer
Wolfram Sang
<
[email protected]
>
Thu, 30 Mar 2017 15:31:01 +0000
(17:31 +0200)
Variable count has always the same value as i, so we don't need it.
Signed-off-by: Heiner Kallweit <
[email protected]
>
Signed-off-by: Wolfram Sang <
[email protected]
>
drivers/i2c/busses/i2c-meson.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-meson.c
b/drivers/i2c/busses/i2c-meson.c
index abaa7cae0936efc7339580374002f815c52b2dae..0a9847c37a6341f5765e698aa81d31ee3a0ba861 100644
(file)
--- a/
drivers/i2c/busses/i2c-meson.c
+++ b/
drivers/i2c/busses/i2c-meson.c
@@
-367,7
+367,7
@@
static int meson_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
int num)
{
struct meson_i2c *i2c = adap->algo_data;
- int i, ret = 0
, count = 0
;
+ int i, ret = 0;
clk_enable(i2c->clk);
@@
-375,12
+375,11
@@
static int meson_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
ret = meson_i2c_xfer_msg(i2c, msgs + i, i == num - 1);
if (ret)
break;
- count++;
}
clk_disable(i2c->clk);
- return ret ?
ret : count
;
+ return ret ?
: i
;
}
static u32 meson_i2c_func(struct i2c_adapter *adap)