Commit 4ee1d9dc authored by Xu Wang's avatar Xu Wang Committed by Lee Jones

mfd: intel_soc_pmic_mrfld: Simplify the return expression of intel_scu_ipc_dev_iowrite8()

Simplify the return expression.
Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 1f0fa85c
...@@ -91,13 +91,8 @@ static int bcove_ipc_byte_reg_write(void *context, unsigned int reg, ...@@ -91,13 +91,8 @@ static int bcove_ipc_byte_reg_write(void *context, unsigned int reg,
{ {
struct intel_soc_pmic *pmic = context; struct intel_soc_pmic *pmic = context;
u8 ipc_in = val; u8 ipc_in = val;
int ret;
ret = intel_scu_ipc_dev_iowrite8(pmic->scu, reg, ipc_in); return intel_scu_ipc_dev_iowrite8(pmic->scu, reg, ipc_in);
if (ret)
return ret;
return 0;
} }
static const struct regmap_config bcove_regmap_config = { static const struct regmap_config bcove_regmap_config = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment