netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: smc91x: Remove an unused variable
@ 2015-03-30 16:43 Fabio Estevam
  2015-03-30 17:20 ` Uwe Kleine-König
  2015-03-31 20:41 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Fabio Estevam @ 2015-03-30 16:43 UTC (permalink / raw)
  To: davem; +Cc: u.kleine-koenig, netdev, Fabio Estevam

From: Fabio Estevam <fabio.estevam@freescale.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@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] net: smc91x: Remove an unused variable
  2015-03-30 16:43 [PATCH net-next] net: smc91x: Remove an unused variable Fabio Estevam
@ 2015-03-30 17:20 ` Uwe Kleine-König
  2015-03-31 14:53   ` David Miller
  2015-03-31 20:41 ` David Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2015-03-30 17:20 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: davem, netdev, Fabio Estevam

On Mon, Mar 30, 2015 at 01:43:38PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.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@lixom.net>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
I wonder why I didn't notice this because the 0day build robot tested my
tree and didn't report this warning. Probably that means this driver
wasn't tested.

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] net: smc91x: Remove an unused variable
  2015-03-30 17:20 ` Uwe Kleine-König
@ 2015-03-31 14:53   ` David Miller
  2015-03-31 17:38     ` Uwe Kleine-König
  0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2015-03-31 14:53 UTC (permalink / raw)
  To: u.kleine-koenig; +Cc: festevam, netdev, fabio.estevam

From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date: Mon, 30 Mar 2015 19:20:57 +0200

> On Mon, Mar 30, 2015 at 01:43:38PM -0300, Fabio Estevam wrote:
>> From: Fabio Estevam <fabio.estevam@freescale.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@lixom.net>
>> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> I wonder why I didn't notice this because the 0day build robot tested my
> tree and didn't report this warning. Probably that means this driver
> wasn't tested.

This driver can't be enabled on x86/x86-64 so the build testing it will
get is going to be extremely limited.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] net: smc91x: Remove an unused variable
  2015-03-31 14:53   ` David Miller
@ 2015-03-31 17:38     ` Uwe Kleine-König
  0 siblings, 0 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2015-03-31 17:38 UTC (permalink / raw)
  To: David Miller; +Cc: festevam, netdev, fabio.estevam

On Tue, Mar 31, 2015 at 10:53:28AM -0400, David Miller wrote:
> From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> Date: Mon, 30 Mar 2015 19:20:57 +0200
> 
> > On Mon, Mar 30, 2015 at 01:43:38PM -0300, Fabio Estevam wrote:
> >> From: Fabio Estevam <fabio.estevam@freescale.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@lixom.net>
> >> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> > I wonder why I didn't notice this because the 0day build robot tested my
> > tree and didn't report this warning. Probably that means this driver
> > wasn't tested.
> 
> This driver can't be enabled on x86/x86-64 so the build testing it will
> get is going to be extremely limited.
The build bot also builds other archs, at least arm and powerpc, but I
think there are more.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] net: smc91x: Remove an unused variable
  2015-03-30 16:43 [PATCH net-next] net: smc91x: Remove an unused variable Fabio Estevam
  2015-03-30 17:20 ` Uwe Kleine-König
@ 2015-03-31 20:41 ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2015-03-31 20:41 UTC (permalink / raw)
  To: festevam; +Cc: u.kleine-koenig, netdev, fabio.estevam

From: Fabio Estevam <festevam@gmail.com>
Date: Mon, 30 Mar 2015 13:43:38 -0300

> From: Fabio Estevam <fabio.estevam@freescale.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@lixom.net>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-31 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-30 16:43 [PATCH net-next] net: smc91x: Remove an unused variable Fabio Estevam
2015-03-30 17:20 ` Uwe Kleine-König
2015-03-31 14:53   ` David Miller
2015-03-31 17:38     ` Uwe Kleine-König
2015-03-31 20:41 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).