diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2015-09-03 23:20:06 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-10-10 00:29:51 +0300 |
commit | 59daef909d9ac2ca4d08389bf816a9ad3bf8c350 (patch) | |
tree | c6a52ea633ef15163b7320d15dc45629f191789d /drivers/i2c | |
parent | 93c659d820ef291f6ca5e628f44b26cfb2226aba (diff) | |
download | linux-59daef909d9ac2ca4d08389bf816a9ad3bf8c350.tar.xz |
i2c: rcar: remove unused IOERROR state
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-rcar.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index 877ce97ac7a5..3594cdab2573 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c @@ -95,7 +95,6 @@ #define RCAR_IRQ_ACK_RECV (~(MAT | MDR) & 0xFF) #define ID_LAST_MSG (1 << 0) -#define ID_IOERROR (1 << 1) #define ID_DONE (1 << 2) #define ID_ARBLOST (1 << 3) #define ID_NACK (1 << 4) @@ -540,11 +539,6 @@ static int rcar_i2c_master_xfer(struct i2c_adapter *adap, break; } - if (rcar_i2c_flags_has(priv, ID_IOERROR)) { - ret = -EIO; - break; - } - ret = i + 1; /* The number of transfer */ } out: |