Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8913f8d2 authored by Jan Glauber's avatar Jan Glauber Committed by Wolfram Sang
Browse files

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: default avatarJan Glauber <jglauber@cavium.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 908cf12b
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -957,12 +957,8 @@ static int octeon_i2c_read(struct octeon_i2c *i2c, int target,

		data[i] = octeon_i2c_data_read(i2c);
		if (recv_len && i == 0) {
			if (data[i] > I2C_SMBUS_BLOCK_MAX + 1) {
				dev_err(i2c->dev,
					"%s: read len > I2C_SMBUS_BLOCK_MAX %d\n",
					__func__, data[i]);
			if (data[i] > I2C_SMBUS_BLOCK_MAX + 1)
				return -EPROTO;
			}
			length += data[i];
		}