浏览代码

i2c: exynos5: remove an unnecessary read of FIFO_STATUS register

This patch removes an extra read of FIFO_STATUS register in the interrrupt
service routine. Which is read again before the actual use.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Naveen Krishna Ch 11 年之前
父节点
当前提交
9f89df3ed6
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/i2c/busses/i2c-exynos5.c

+ 0 - 1
drivers/i2c/busses/i2c-exynos5.c

@@ -405,7 +405,6 @@ static irqreturn_t exynos5_i2c_irq(int irqno, void *dev_id)
 
 
 	int_status = readl(i2c->regs + HSI2C_INT_STATUS);
 	int_status = readl(i2c->regs + HSI2C_INT_STATUS);
 	writel(int_status, i2c->regs + HSI2C_INT_STATUS);
 	writel(int_status, i2c->regs + HSI2C_INT_STATUS);
-	fifo_status = readl(i2c->regs + HSI2C_FIFO_STATUS);
 
 
 	/* handle interrupt related to the transfer status */
 	/* handle interrupt related to the transfer status */
 	if (int_status & HSI2C_INT_I2C) {
 	if (int_status & HSI2C_INT_I2C) {