From: Wolfram Sang Date: Wed, 19 Nov 2014 09:11:39 +0000 (+0100) Subject: i2c: imx: simplify i2c_imx_dma_write() a little X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f5084933673e57d38492198f04b0e81b6d00dfb2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git i2c: imx: simplify i2c_imx_dma_write() a little Signed-off-by: Wolfram Sang Acked-by: Yao Yuan --- diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index d0668d0d626d..aab1f4bb9e30 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -657,11 +657,7 @@ static int i2c_imx_dma_write(struct imx_i2c_struct *i2c_imx, if (result) return result; - result = i2c_imx_acked(i2c_imx); - if (result) - return result; - - return 0; + return i2c_imx_acked(i2c_imx); } static int i2c_imx_dma_read(struct imx_i2c_struct *i2c_imx,