Commit 34d21e3f authored by Fabio Estevam's avatar Fabio Estevam Committed by David S. Miller

net: smc91x: Remove an unused variable

Commit cb6e0b36 ("net: smc91x: make use of 4th parameter to devm_gpiod_get_index")
caused the following build warning:

drivers/net/ethernet/smsc/smc91x.c:2208:6: warning: unused variable 'res' [-Wunused-variable]

Remove the unused 'res' variable.
Reported-by: default avatarOlof's autobuilder <build@lixom.net>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7b6249bb
...@@ -2205,7 +2205,6 @@ static int try_toggle_control_gpio(struct device *dev, ...@@ -2205,7 +2205,6 @@ static int try_toggle_control_gpio(struct device *dev,
{ {
struct gpio_desc *gpio = *desc; struct gpio_desc *gpio = *desc;
enum gpiod_flags flags = value ? GPIOD_OUT_LOW : GPIOD_OUT_HIGH; enum gpiod_flags flags = value ? GPIOD_OUT_LOW : GPIOD_OUT_HIGH;
int res;
gpio = devm_gpiod_get_index_optional(dev, name, index, flags); gpio = devm_gpiod_get_index_optional(dev, name, index, flags);
if (IS_ERR(gpio)) if (IS_ERR(gpio))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment