Commit 214037a1 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

drivers: net: smc91x: remove redundant initialization of pointer gpio



The pointer gpio is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 72642f41
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2204,7 +2204,7 @@ static int try_toggle_control_gpio(struct device *dev,
				   const char *name, int index,
				   int value, unsigned int nsdelay)
{
	struct gpio_desc *gpio = *desc;
	struct gpio_desc *gpio;
	enum gpiod_flags flags = value ? GPIOD_OUT_LOW : GPIOD_OUT_HIGH;

	gpio = devm_gpiod_get_index_optional(dev, name, index, flags);