Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Linus Walleij
f8650b8f cbf2be74

+1 -1
+1 -1
drivers/gpio/gpio-bd70528.c
··· 153 153 154 154 static int bd70528_gpio_get(struct gpio_chip *chip, unsigned int offset) 155 155 { 156 - int ret = -EINVAL; 156 + int ret; 157 157 struct bd70528_gpio *bdgpio = gpiochip_get_data(chip); 158 158 159 159 /*