summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2012-07-19 08:18:10 +0000
committerHeiko Schocher <hs@denx.de>2012-07-31 07:45:00 +0200
commitd45e75b10cff8b388c9ec2e9fe3d4484bf1ba943 (patch)
treed4d9707a58cbb98543706c1f42f4012db903662f /drivers/i2c
parent7aa57a01c0b5589c6f757b7a5106e09f9ba8fb10 (diff)
downloadu-boot-imx-d45e75b10cff8b388c9ec2e9fe3d4484bf1ba943.zip
u-boot-imx-d45e75b10cff8b388c9ec2e9fe3d4484bf1ba943.tar.gz
u-boot-imx-d45e75b10cff8b388c9ec2e9fe3d4484bf1ba943.tar.bz2
mxc_i2c: remove redundant read
wait_for_sr_state returns i2sr on success so no need to read again. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/mxc_i2c.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index 01a6408..83c2fab 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;