i2c: rcar: remove unused IOERROR state
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 3 Sep 2015 20:20:06 +0000 (22:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 9 Oct 2015 21:29:51 +0000 (22:29 +0100)
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c

index 877ce97ac7a5801839d6164a391a395f4ba83f1d..3594cdab2573b60b80de9d617cf607bfcdb661b6 100644 (file)
@@ -95,7 +95,6 @@
 #define RCAR_IRQ_ACK_RECV      (~(MAT | MDR) & 0xFF)
 
 #define ID_LAST_MSG    (1 << 0)
 #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)
 #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;
                }
 
                        break;
                }
 
-               if (rcar_i2c_flags_has(priv, ID_IOERROR)) {
-                       ret = -EIO;
-                       break;
-               }
-
                ret = i + 1; /* The number of transfer */
        }
 out:
                ret = i + 1; /* The number of transfer */
        }
 out: