提交 9777d0bf 编写于 作者: Z Zheng Yongjun 提交者: Linus Walleij

gpio: cs5535: Simplify the return expression of cs5535_gpio_probe()

Simplify the return expression.
Signed-off-by: NZheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20201210135609.1372-1-zhengyongjun3@huawei.comSigned-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 9d552219
...@@ -345,12 +345,8 @@ static int cs5535_gpio_probe(struct platform_device *pdev) ...@@ -345,12 +345,8 @@ static int cs5535_gpio_probe(struct platform_device *pdev)
mask_orig, mask); mask_orig, mask);
/* finally, register with the generic GPIO API */ /* finally, register with the generic GPIO API */
err = devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip, return devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip,
&cs5535_gpio_chip); &cs5535_gpio_chip);
if (err)
return err;
return 0;
} }
static struct platform_driver cs5535_gpio_driver = { static struct platform_driver cs5535_gpio_driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册