[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1427733818-11823-1-git-send-email-festevam@gmail.com>
Date: Mon, 30 Mar 2015 13:43:38 -0300
From: Fabio Estevam <festevam@...il.com>
To: davem@...emloft.net
Cc: u.kleine-koenig@...gutronix.de, netdev@...r.kernel.org,
Fabio Estevam <fabio.estevam@...escale.com>
Subject: [PATCH net-next] net: smc91x: Remove an unused variable
From: Fabio Estevam <fabio.estevam@...escale.com>
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 <build@...om.net>
Signed-off-by: Fabio Estevam <fabio.estevam@...escale.com>
---
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 5a1a3e7..14b363a 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))
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists