Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1556996

[PATCH] tilepro: Fix non-void return from void function

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject [PATCH] tilepro: Fix non-void return from void function
Date 2017-01-12 00:00 +0100
Message-ID <sYA25-4n7-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] tilepro: Fix non-void return from void function Joe Perches <joe@perches.com> - 2017-01-12 00:00 +0100
  Re: [PATCH] tilepro: Fix non-void return from void function David Miller <davem@davemloft.net> - 2017-01-12 21:20 +0100

csiph-web