projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0620520
)
i2c: imx: simplify i2c_imx_dma_write() a little
author
Wolfram Sang
<wsa@the-dreams.de>
Wed, 19 Nov 2014 09:11:39 +0000
(10:11 +0100)
committer
Wolfram Sang
<wsa@the-dreams.de>
Wed, 19 Nov 2014 14:16:19 +0000
(15:16 +0100)
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Yao Yuan <yao.yuan@freescale.com>
drivers/i2c/busses/i2c-imx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-imx.c
b/drivers/i2c/busses/i2c-imx.c
index d0668d0d626dfb366e976bba4d448fe757907711..aab1f4bb9e302caba7a68a717f444213882c11fd 100644
(file)
--- 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,