提交 5597da29 编写于 作者: J Javier Martinez Canillas 提交者: Lee Jones

mfd: da903x: Simplify function return logic

The invoked function already returns zero on success or a negative
errno code so there is no need to open code the logic in the caller.
Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com>
Acked-by: NAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 b158b69a
......@@ -532,11 +532,7 @@ static int da903x_probe(struct i2c_client *client,
return ret;
}
ret = da903x_add_subdevs(chip, pdata);
if (ret)
return ret;
return 0;
return da903x_add_subdevs(chip, pdata);
}
static int da903x_remove(struct i2c_client *client)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册