linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tilepro: Fix non-void return from void function
@ 2017-01-11 22:52 Joe Perches
  2017-01-12 20:14 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Perches @ 2017-01-11 22:52 UTC (permalink / raw)
  To: Chris Metcalf; +Cc: stephen hemminger, netdev, linux-kernel

commit bc1f44709cf2 ("net: make ndo_get_stats64 a void function")
mistakenly used a return value for this void conversion.

Fix it.

Signed-off-by: Joe Perches <joe@perches.com>
cc: stephen hemminger <stephen@networkplumber.org>
---
 drivers/net/ethernet/tile/tilepro.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/net/ethernet/tile/tilepro.c b/drivers/net/ethernet/tile/tilepro.c
index 30cfea62a356..44f153713791 100644
--- a/drivers/net/ethernet/tile/tilepro.c
+++ b/drivers/net/ethernet/tile/tilepro.c
@@ -2090,12 +2090,8 @@ static void tile_net_get_stats64(struct net_device *dev,
 	stats->tx_bytes   = tx_bytes;
 	stats->rx_errors  = rx_errors;
 	stats->rx_dropped = rx_dropped;
-
-	return stats;
 }
 
-
-
 /*
  * Change the Ethernet Address of the NIC.
  *
-- 
2.10.0.rc2.1.g053435c

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

* Re: [PATCH] tilepro: Fix non-void return from void function
  2017-01-11 22:52 [PATCH] tilepro: Fix non-void return from void function Joe Perches
@ 2017-01-12 20:14 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-01-12 20:14 UTC (permalink / raw)
  To: joe; +Cc: cmetcalf, stephen, netdev, linux-kernel

From: Joe Perches <joe@perches.com>
Date: Wed, 11 Jan 2017 14:52:20 -0800

> commit bc1f44709cf2 ("net: make ndo_get_stats64 a void function")
> mistakenly used a return value for this void conversion.
> 
> Fix it.
> 
> Signed-off-by: Joe Perches <joe@perches.com>
> cc: stephen hemminger <stephen@networkplumber.org>

Applied.

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

end of thread, other threads:[~2017-01-12 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-11 22:52 [PATCH] tilepro: Fix non-void return from void function Joe Perches
2017-01-12 20:14 ` 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).