From: Kyungwoo Kang Date: Thu, 7 Sep 2017 09:56:03 +0000 (+0900) Subject: [COMMON] i2c: exynos5: Fix prevent defect X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5ed322da21d0fa4f73e27668a2eab62772fd5fef;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [COMMON] i2c: exynos5: Fix prevent defect CID: 197277 Fix prevent defcet, unsigned comparrison which return value is never true. Change-Id: If3890084cc46b01b5fd6dbb467b760113f393b3c Signed-off-by: Kyungwoo Kang --- diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index 04fa9d0e5d76..8214ea00d9d8 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -363,7 +363,8 @@ static void exynos5_i2c_clr_pend_irq(struct exynos5_i2c *i2c) */ static int exynos5_i2c_set_timing(struct exynos5_i2c *i2c, bool hs_timings) { - unsigned int ipclk, ret; + int ret; + unsigned int ipclk; unsigned int op_clk = (mode == HSI2C_HIGH_SPD) ? i2c->hs_clock : i2c->fs_clock;