projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d55221
)
gpio: cs5535: Simplify the return expression of cs5535_gpio_probe()
author
Zheng Yongjun
<zhengyongjun3@huawei.com>
Thu, 10 Dec 2020 13:56:09 +0000
(21:56 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Sat, 12 Dec 2020 00:37:46 +0000
(
01:37
+0100)
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>
drivers/gpio/gpio-cs5535.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-cs5535.c
b/drivers/gpio/gpio-cs5535.c
index
53b24e3
..
6da3a24
100644
(file)
--- 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 = {