Skip to content

Commit

Permalink
gpio: bd70528: remove redundant assignment to variable ret
Browse files Browse the repository at this point in the history
Variable ret is being initialized with a value that is never read
and ret is being re-assigned a little later on. The assignment is
redundant and hence can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190629123306.12519-1-colin.king@canonical.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Colin Ian King authored and Linus Walleij committed Jul 28, 2019
1 parent cbf2be7 commit f8650b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-bd70528.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static int bd70528_gpio_get_i(struct bd70528_gpio *bdgpio, unsigned int offset)

static int bd70528_gpio_get(struct gpio_chip *chip, unsigned int offset)
{
int ret = -EINVAL;
int ret;
struct bd70528_gpio *bdgpio = gpiochip_get_data(chip);

/*
Expand Down

0 comments on commit f8650b8

Please sign in to comment.