projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30322bc
)
gpiolib: remove a redundant check in gpiod_to_chip()
author
Vladimir Zapolskiy
<vz@mleia.com>
Thu, 21 Dec 2017 16:37:30 +0000
(18:37 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 2 Jan 2018 08:33:07 +0000
(09:33 +0100)
This non-functional change slightly simplifies the implementation
of gpiod_to_chip() function.
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpiolib.c
b/drivers/gpio/gpiolib.c
index 02cf658eeedd4eea251692b89eff5b073937fc00..c23cc6b586ba1f2052bbc298e948bcd63099a077 100644
(file)
--- a/
drivers/gpio/gpiolib.c
+++ b/
drivers/gpio/gpiolib.c
@@
-161,7
+161,7
@@
EXPORT_SYMBOL_GPL(desc_to_gpio);
*/
struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)
{
- if (!desc || !desc->gdev
|| !desc->gdev->chip
)
+ if (!desc || !desc->gdev)
return NULL;
return desc->gdev->chip;
}