Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zheng Yongjun and committed by
Linus Walleij
9777d0bf 9d552219

+2 -6
+2 -6
drivers/gpio/gpio-cs5535.c
··· 345 345 mask_orig, mask); 346 346 347 347 /* finally, register with the generic GPIO API */ 348 - err = devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip, 349 - &cs5535_gpio_chip); 350 - if (err) 351 - return err; 352 - 353 - return 0; 348 + return devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip, 349 + &cs5535_gpio_chip); 354 350 } 355 351 356 352 static struct platform_driver cs5535_gpio_driver = {