summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib-of.c
diff options
context:
space:
mode:
authorLaurent Navet <laurent.navet@gmail.com>2015-07-07 22:22:15 +0200
committerLinus Walleij <linus.walleij@linaro.org>2015-07-16 15:50:09 +0200
commit72858602e167ea2d7487337bac279beec7a99c84 (patch)
tree5c2d87811472fdbb53b0fb81cc6bab79ce6f97bd /drivers/gpio/gpiolib-of.c
parent54442658d8e83b0589731620bd958cc8b2857167 (diff)
downloadlinux-72858602e167ea2d7487337bac279beec7a99c84.tar.bz2
gpiolib: remove unneeded assignation
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>
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
-rw-r--r--drivers/gpio/gpiolib-of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index fd2db4b3a709..1e36ec5e2e0c 100644
--- 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)) {