projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f0fa85
)
mfd: intel_soc_pmic_mrfld: Simplify the return expression of intel_scu_ipc_dev_iowrite8()
author
Xu Wang
<vulab@iscas.ac.cn>
Mon, 27 Jul 2020 03:04:07 +0000
(
03:04
+0000)
committer
Lee Jones
<lee.jones@linaro.org>
Thu, 13 Aug 2020 06:50:05 +0000
(07:50 +0100)
Simplify the return expression.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/intel_soc_pmic_mrfld.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/intel_soc_pmic_mrfld.c
b/drivers/mfd/intel_soc_pmic_mrfld.c
index
bd94c98
..
71da861
100644
(file)
--- a/
drivers/mfd/intel_soc_pmic_mrfld.c
+++ b/
drivers/mfd/intel_soc_pmic_mrfld.c
@@
-91,13
+91,8
@@
static int bcove_ipc_byte_reg_write(void *context, unsigned int reg,
{
struct intel_soc_pmic *pmic = context;
u8 ipc_in = val;
- int ret;
- ret = intel_scu_ipc_dev_iowrite8(pmic->scu, reg, ipc_in);
- if (ret)
- return ret;
-
- return 0;
+ return intel_scu_ipc_dev_iowrite8(pmic->scu, reg, ipc_in);
}
static const struct regmap_config bcove_regmap_config = {