[COMMON] i2c: exynos5: fix build worning
authorHyunki Koo <hyunki00.koo@samsung.com>
Wed, 17 Jan 2018 05:54:23 +0000 (14:54 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Wed, 9 May 2018 12:14:45 +0000 (21:14 +0900)
Change-Id: Icaf0b8f20d9c0d137f089610c61bfa1a5235695a
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
drivers/i2c/busses/i2c-exynos5.c

index 0ab4182aefc67dcd15df85318528362c199c1cdb..da72eef6e883849b18bc23560a1757b13b08d226 100644 (file)
@@ -613,10 +613,11 @@ static irqreturn_t exynos5_i2c_irq(int irqno, void *dev_id)
 
                if (reg_val & HSI2C_INT_NODEV) {
                        dev_err(i2c->dev, "HSI2C NO ACK occured\n");
-                       if (i2c->nack_restart)
+                       if (i2c->nack_restart) {
                                if (reg_val & HSI2C_INT_TRANSFER_DONE)
                                        exynos5_i2c_stop(i2c);
                                goto out;
+                       }
                }
 
                i2c->trans_done = -ENXIO;