projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5444265
)
gpiolib: remove unneeded assignation
author
Laurent Navet
<laurent.navet@gmail.com>
Tue, 7 Jul 2015 20:22:15 +0000
(22:22 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 16 Jul 2015 13:50:09 +0000
(15:50 +0200)
ret is assigned value from of_property_read_string_index but is
overwritten before being used so remove it.
Also fix coverity CID
1309759
Reported-by: coverity (CID 1309759)
Signed-off-by: Laurent Navet <laurent.navet@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-of.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpiolib-of.c
b/drivers/gpio/gpiolib-of.c
index fd2db4b3a709e8f163e00adfd38a3d60cbaafb93..1e36ec5e2e0c0ce7babceaead2854c7343226315 100644
(file)
--- a/
drivers/gpio/gpiolib-of.c
+++ b/
drivers/gpio/gpiolib-of.c
@@
-362,7
+362,7
@@
static void of_gpiochip_add_pin_range(struct gpio_chip *chip)
if (pinspec.args[2]) {
if (group_names) {
-
ret =
of_property_read_string_index(np,
+ of_property_read_string_index(np,
group_names_propname,
index, &name);
if (strlen(name)) {