diff options
author | Zheng Yongjun <zhengyongjun3@huawei.com> | 2020-12-10 16:56:09 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-12-12 03:37:46 +0300 |
commit | 9777d0bfdae796de3f8d73879a43bc00145dc8ee (patch) | |
tree | 914e2e52fb73d03d2be679a287d4f727d963d564 /drivers/gpio/gpio-cs5535.c | |
parent | 9d5522199505c761575c8ea31dcfd9a2a8d73614 (diff) | |
download | linux-9777d0bfdae796de3f8d73879a43bc00145dc8ee.tar.xz |
gpio: cs5535: Simplify the return expression of cs5535_gpio_probe()
Simplify the return expression.
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20201210135609.1372-1-zhengyongjun3@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-cs5535.c')
-rw-r--r-- | drivers/gpio/gpio-cs5535.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-cs5535.c b/drivers/gpio/gpio-cs5535.c index 53b24e3ae7de..6da3a247614a 100644 --- a/drivers/gpio/gpio-cs5535.c +++ b/drivers/gpio/gpio-cs5535.c @@ -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, - &cs5535_gpio_chip); - if (err) - return err; - - return 0; + return devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip, + &cs5535_gpio_chip); } static struct platform_driver cs5535_gpio_driver = { |