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>
This commit is contained in:
Родитель
1f0fa85c07
Коммит
4ee1d9dc80
|
@ -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 = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче