diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-omap.c')
-rw-r--r-- | drivers/i2c/busses/i2c-omap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2d9b03c94614..236cb38bb859 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c | |||
@@ -812,8 +812,7 @@ complete: | |||
812 | OMAP_I2C_BUFSTAT_REG) | 812 | OMAP_I2C_BUFSTAT_REG) |
813 | >> 8) & 0x3F; | 813 | >> 8) & 0x3F; |
814 | } | 814 | } |
815 | while (num_bytes) { | 815 | while (num_bytes--) { |
816 | num_bytes--; | ||
817 | w = omap_i2c_read_reg(dev, OMAP_I2C_DATA_REG); | 816 | w = omap_i2c_read_reg(dev, OMAP_I2C_DATA_REG); |
818 | if (dev->buf_len) { | 817 | if (dev->buf_len) { |
819 | *dev->buf++ = w; | 818 | *dev->buf++ = w; |
@@ -855,8 +854,7 @@ complete: | |||
855 | OMAP_I2C_BUFSTAT_REG) | 854 | OMAP_I2C_BUFSTAT_REG) |
856 | & 0x3F; | 855 | & 0x3F; |
857 | } | 856 | } |
858 | while (num_bytes) { | 857 | while (num_bytes--) { |
859 | num_bytes--; | ||
860 | w = 0; | 858 | w = 0; |
861 | if (dev->buf_len) { | 859 | if (dev->buf_len) { |
862 | w = *dev->buf++; | 860 | w = *dev->buf++; |