Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d741d0c7 authored by Shubhrajyoti D's avatar Shubhrajyoti D Committed by Wolfram Sang
Browse files

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: default avatarShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent b07be0f3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;