From: Hyunki Koo Date: Wed, 17 Jan 2018 05:54:23 +0000 (+0900) Subject: [COMMON] i2c: exynos5: fix build worning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e513f1ab56e015f38d623ee88a9ed49fd44ad18;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] i2c: exynos5: fix build worning Change-Id: Icaf0b8f20d9c0d137f089610c61bfa1a5235695a Signed-off-by: Hyunki Koo --- diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index 0ab4182aefc6..da72eef6e883 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -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;