mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 08:17:46 +00:00
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>
This commit is contained in:
parent
54442658d8
commit
72858602e1
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue