Commit 9777d0bf authored by Zheng Yongjun's avatar Zheng Yongjun Committed by Linus Walleij

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

Simplify the return expression.
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20201210135609.1372-1-zhengyongjun3@huawei.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 9d552219
......@@ -345,12 +345,8 @@ static int cs5535_gpio_probe(struct platform_device *pdev)
mask_orig, mask);
/* 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);
if (err)
return err;
return 0;
}
static struct platform_driver cs5535_gpio_driver = {
......
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