diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-11-19 04:11:39 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-11-19 09:16:19 -0500 |
commit | f5084933673e57d38492198f04b0e81b6d00dfb2 (patch) | |
tree | 42fb11fffd6b02067b1f55bba2a148cc8684f2a0 /drivers/i2c | |
parent | 0620520630bcc2c45cea71ce9069ddbc41b4b24d (diff) |
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-imx.c | 6 |
1 files changed, 1 insertions, 5 deletions
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, | |||
657 | if (result) | 657 | if (result) |
658 | return result; | 658 | return result; |
659 | 659 | ||
660 | result = i2c_imx_acked(i2c_imx); | 660 | return i2c_imx_acked(i2c_imx); |
661 | if (result) | ||
662 | return result; | ||
663 | |||
664 | return 0; | ||
665 | } | 661 | } |
666 | 662 | ||
667 | static int i2c_imx_dma_read(struct imx_i2c_struct *i2c_imx, | 663 | static int i2c_imx_dma_read(struct imx_i2c_struct *i2c_imx, |