diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-12-02 02:20:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-06 16:24:47 -0500 |
commit | b27d50a9ff5cf2775b7a4daf571a0cc72d013b9c (patch) | |
tree | 611ec2c7204110ea9ee0f105afbd90480565ba63 /drivers/net/xilinx_emaclite.c | |
parent | e176bbc5893bef36a0909de31dea97865660a7c9 (diff) |
net: emaclite: Omit private ndo_get_stats function
xemaclite_get_stats() just returns dev->stats so we can leave it out
alltogether and let dev_get_stats() do the job.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xilinx_emaclite.c')
-rw-r--r-- | drivers/net/xilinx_emaclite.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 2de52d18152f..de6c3086d232 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c | |||
@@ -1001,21 +1001,6 @@ static int xemaclite_close(struct net_device *dev) | |||
1001 | } | 1001 | } |
1002 | 1002 | ||
1003 | /** | 1003 | /** |
1004 | * xemaclite_get_stats - Get the stats for the net_device | ||
1005 | * @dev: Pointer to the network device | ||
1006 | * | ||
1007 | * This function returns the address of the 'net_device_stats' structure for the | ||
1008 | * given network device. This structure holds usage statistics for the network | ||
1009 | * device. | ||
1010 | * | ||
1011 | * Return: Pointer to the net_device_stats structure. | ||
1012 | */ | ||
1013 | static struct net_device_stats *xemaclite_get_stats(struct net_device *dev) | ||
1014 | { | ||
1015 | return &dev->stats; | ||
1016 | } | ||
1017 | |||
1018 | /** | ||
1019 | * xemaclite_send - Transmit a frame | 1004 | * xemaclite_send - Transmit a frame |
1020 | * @orig_skb: Pointer to the socket buffer to be transmitted | 1005 | * @orig_skb: Pointer to the socket buffer to be transmitted |
1021 | * @dev: Pointer to the network device | 1006 | * @dev: Pointer to the network device |
@@ -1285,7 +1270,6 @@ static struct net_device_ops xemaclite_netdev_ops = { | |||
1285 | .ndo_start_xmit = xemaclite_send, | 1270 | .ndo_start_xmit = xemaclite_send, |
1286 | .ndo_set_mac_address = xemaclite_set_mac_address, | 1271 | .ndo_set_mac_address = xemaclite_set_mac_address, |
1287 | .ndo_tx_timeout = xemaclite_tx_timeout, | 1272 | .ndo_tx_timeout = xemaclite_tx_timeout, |
1288 | .ndo_get_stats = xemaclite_get_stats, | ||
1289 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1273 | #ifdef CONFIG_NET_POLL_CONTROLLER |
1290 | .ndo_poll_controller = xemaclite_poll_controller, | 1274 | .ndo_poll_controller = xemaclite_poll_controller, |
1291 | #endif | 1275 | #endif |