summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-07-27 03:04:07 +0000
committerLee Jones <lee.jones@linaro.org>2020-08-13 07:50:05 +0100
commit4ee1d9dc8073acd40f04e5fe3771a5dff978d077 (patch)
treeb57320d18607d30defb87f35b65b9ba94747a3c3 /drivers
parent1f0fa85c07fb53d756219cf7e6e8e77eab6e75eb (diff)
mfd: intel_soc_pmic_mrfld: Simplify the return expression of intel_scu_ipc_dev_iowrite8()
Simplify the return expression. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/intel_soc_pmic_mrfld.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mfd/intel_soc_pmic_mrfld.c b/drivers/mfd/intel_soc_pmic_mrfld.c
index bd94c989d232..71da861e8c27 100644
--- 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 = {