diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-07-27 03:04:07 +0000 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-08-13 07:50:05 +0100 |
commit | 4ee1d9dc8073acd40f04e5fe3771a5dff978d077 (patch) | |
tree | b57320d18607d30defb87f35b65b9ba94747a3c3 /drivers/mfd | |
parent | 1f0fa85c07fb53d756219cf7e6e8e77eab6e75eb (diff) | |
download | linux-stable-4ee1d9dc8073acd40f04e5fe3771a5dff978d077.tar.gz linux-stable-4ee1d9dc8073acd40f04e5fe3771a5dff978d077.tar.bz2 linux-stable-4ee1d9dc8073acd40f04e5fe3771a5dff978d077.zip |
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/mfd')
-rw-r--r-- | drivers/mfd/intel_soc_pmic_mrfld.c | 7 |
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 = { |