浏览代码

tilepro: Fix non-void return from void function

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Joe Perches 8 年之前
父节点
当前提交
b65b09aa79
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      drivers/net/ethernet/tile/tilepro.c

+ 0 - 4
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->tx_bytes   = tx_bytes;
 	stats->rx_errors  = rx_errors;
 	stats->rx_errors  = rx_errors;
 	stats->rx_dropped = rx_dropped;
 	stats->rx_dropped = rx_dropped;
-
-	return stats;
 }
 }
 
 
-
-
 /*
 /*
  * Change the Ethernet Address of the NIC.
  * Change the Ethernet Address of the NIC.
  *
  *