i2c: imx: simplify i2c_imx_dma_write() a little

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Yao Yuan <yao.yuan@freescale.com>
This commit is contained in:
Wolfram Sang 2014-11-19 10:11:39 +01:00
parent 0620520630
commit f508493367
1 changed files with 1 additions and 5 deletions

View File

@ -657,11 +657,7 @@ static int i2c_imx_dma_write(struct imx_i2c_struct *i2c_imx,
if (result) if (result)
return result; return result;
result = i2c_imx_acked(i2c_imx); return i2c_imx_acked(i2c_imx);
if (result)
return result;
return 0;
} }
static int i2c_imx_dma_read(struct imx_i2c_struct *i2c_imx, static int i2c_imx_dma_read(struct imx_i2c_struct *i2c_imx,