aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Glauber <jglauber@cavium.com>2016-06-08 02:51:19 -0400
committerWolfram Sang <wsa@the-dreams.de>2016-06-09 16:07:57 -0400
commit8913f8d2930368f30998e60851259606eeed2c49 (patch)
tree08bc03499d6b8c5a4eb3b063728226828f0fe3e5
parent908cf12bbca0f18a23085a5a35301509e034f0a9 (diff)
i2c: octeon: Avoid printk after too long SMBUS message
Remove the warning about a too long SMBUS message because the ipmi_ssif driver triggers this warning too frequently so it spams the message log. Signed-off-by: Jan Glauber <jglauber@cavium.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r--drivers/i2c/busses/i2c-octeon.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/i2c/busses/i2c-octeon.c b/drivers/i2c/busses/i2c-octeon.c
index 1922e4a16e92..30ae35146723 100644
--- a/drivers/i2c/busses/i2c-octeon.c
+++ b/drivers/i2c/busses/i2c-octeon.c
@@ -957,12 +957,8 @@ static int octeon_i2c_read(struct octeon_i2c *i2c, int target,
957 957
958 data[i] = octeon_i2c_data_read(i2c); 958 data[i] = octeon_i2c_data_read(i2c);
959 if (recv_len && i == 0) { 959 if (recv_len && i == 0) {
960 if (data[i] > I2C_SMBUS_BLOCK_MAX + 1) { 960 if (data[i] > I2C_SMBUS_BLOCK_MAX + 1)
961 dev_err(i2c->dev,
962 "%s: read len > I2C_SMBUS_BLOCK_MAX %d\n",
963 __func__, data[i]);
964 return -EPROTO; 961 return -EPROTO;
965 }
966 length += data[i]; 962 length += data[i];
967 } 963 }
968 964