]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
i2c: omap: remove redundant status read
authorShubhrajyoti D <shubhrajyoti@ti.com>
Wed, 12 Sep 2012 10:58:12 +0000 (16:28 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Wed, 12 Sep 2012 13:03:48 +0000 (15:03 +0200)
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>
drivers/i2c/busses/i2c-omap.c

index 5d4bad44d370714fc6a6f631bb875543702d1371..498a462c49b712857fc7e7aafca21c47e842b68b 100644 (file)
@@ -946,7 +946,6 @@ omap_i2c_isr(int this_irq, void *dev_id)
                                num_bytes = dev->buf_len;
 
                        ret = omap_i2c_transmit_data(dev, num_bytes, true);
-                       stat = omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG);
                        if (ret < 0)
                                goto out;
 
@@ -962,7 +961,6 @@ omap_i2c_isr(int this_irq, void *dev_id)
                                num_bytes = dev->threshold;
 
                        ret = omap_i2c_transmit_data(dev, num_bytes, false);
-                       stat = omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG);
                        if (ret < 0)
                                goto out;