From: Troy Kisky Date: Thu, 19 Jul 2012 08:18:10 +0000 (+0000) Subject: mxc_i2c: remove redundant read X-Git-Tag: v2012.10-rc1~415^2~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d45e75b10cff8b388c9ec2e9fe3d4484bf1ba943;p=u-boot mxc_i2c: remove redundant read wait_for_sr_state returns i2sr on success so no need to read again. Signed-off-by: Troy Kisky Acked-by: Marek Vasut --- diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 01a64081d7..83c2fab089 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -195,7 +195,6 @@ static int tx_byte(struct mxc_i2c_regs *i2c_regs, u8 byte) ret = wait_for_sr_state(i2c_regs, ST_IIF); if (ret < 0) return ret; - ret = readb(&i2c_regs->i2sr); if (ret & I2SR_RX_NO_AK) return -ENODEV; return 0;