summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-bd70528.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-06-29 15:33:06 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-07-28 12:59:50 +0300
commitf8650b8ff6fd96075391e72bb3b6d0a99f27829d (patch)
tree8a196751073aa1a101621f5ef1cff9f69e37fed2 /drivers/gpio/gpio-bd70528.c
parentcbf2be749076c266f51cafc71dc9045bcad9ed05 (diff)
downloadlinux-f8650b8ff6fd96075391e72bb3b6d0a99f27829d.tar.xz
gpio: bd70528: remove redundant assignment to variable ret
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>
Diffstat (limited to 'drivers/gpio/gpio-bd70528.c')
-rw-r--r--drivers/gpio/gpio-bd70528.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-bd70528.c b/drivers/gpio/gpio-bd70528.c
index 633422b430b4..0c1ead12d883 100644
--- a/drivers/gpio/gpio-bd70528.c
+++ b/drivers/gpio/gpio-bd70528.c
@@ -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);
/*