From 34d21e3f399729ca7c89636207fe41c481d99352 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Mon, 30 Mar 2015 13:43:38 -0300 Subject: net: smc91x: Remove an unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit cb6e0b3690f48dff ("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: Olof's autobuilder Signed-off-by: Fabio Estevam Acked-by: Uwe Kleine-König Signed-off-by: David S. Miller --- drivers/net/ethernet/smsc/smc91x.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index 5a1a3e7c93e7..14b363a25c02 100644 --- a/drivers/net/ethernet/smsc/smc91x.c +++ b/drivers/net/ethernet/smsc/smc91x.c @@ -2205,7 +2205,6 @@ static int try_toggle_control_gpio(struct device *dev, { struct gpio_desc *gpio = *desc; enum gpiod_flags flags = value ? GPIOD_OUT_LOW : GPIOD_OUT_HIGH; - int res; gpio = devm_gpiod_get_index_optional(dev, name, index, flags); if (IS_ERR(gpio)) -- cgit v1.2.3