aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorShubhrajyoti D <shubhrajyoti@ti.com>2012-09-12 06:58:12 -0400
committerWolfram Sang <w.sang@pengutronix.de>2012-09-12 09:03:48 -0400
commitd741d0c792bda4761fd3f0089e7b0d34e99acbff (patch)
tree9c9f2f2e2789b4f593753beeb8e1572324a363c6 /drivers
parentb07be0f3b9e1bed6cbd29117d7f0519d114fbd82 (diff)
i2c: omap: remove redundant status read
Currently omap_i2c_ack_stat doesn't use the stat variable. After the read of the I2C_STAT_REG it is not used. Remove the redundant read of the status register. Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/busses/i2c-omap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 5d4bad44d370..498a462c49b7 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -946,7 +946,6 @@ omap_i2c_isr(int this_irq, void *dev_id)
946 num_bytes = dev->buf_len; 946 num_bytes = dev->buf_len;
947 947
948 ret = omap_i2c_transmit_data(dev, num_bytes, true); 948 ret = omap_i2c_transmit_data(dev, num_bytes, true);
949 stat = omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG);
950 if (ret < 0) 949 if (ret < 0)
951 goto out; 950 goto out;
952 951
@@ -962,7 +961,6 @@ omap_i2c_isr(int this_irq, void *dev_id)
962 num_bytes = dev->threshold; 961 num_bytes = dev->threshold;
963 962
964 ret = omap_i2c_transmit_data(dev, num_bytes, false); 963 ret = omap_i2c_transmit_data(dev, num_bytes, false);
965 stat = omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG);
966 if (ret < 0) 964 if (ret < 0)
967 goto out; 965 goto out;
968 966