we will already loop again and that variable
will be reinitialized at the beginning of the
loop.

Signed-off-by: Felipe Balbi <ba...@ti.com>
---
 drivers/i2c/busses/i2c-omap.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index f2ab95a..492e340 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -965,7 +965,6 @@ omap_i2c_threaded_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) {
                                err |= OMAP_I2C_STAT_XUDF;
                                omap_i2c_ack_stat(dev, OMAP_I2C_STAT_XUDF |
@@ -985,7 +984,6 @@ omap_i2c_threaded_isr(int this_irq, void *dev_id)
                                num_bytes = dev->fifo_size;
 
                        ret = omap_i2c_transmit_data(dev, num_bytes, false);
-                       stat = omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG);
                        if (ret < 0) {
                                err |= OMAP_I2C_STAT_XUDF;
                                omap_i2c_ack_stat(dev, OMAP_I2C_STAT_XUDF |
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to