Skip to content

Commit

Permalink
gpiolib: remove unneeded assignation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurent Navet authored and Linus Walleij committed Jul 16, 2015
1 parent 5444265 commit 7285860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpiolib-of.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 7285860

Please sign in to comment.