aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/arm
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-12-02 02:20:05 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-06 16:24:46 -0500
commite176bbc5893bef36a0909de31dea97865660a7c9 (patch)
tree49ce41784d570fbcfa8b6cd96236b3ed0fa60514 /drivers/net/arm
parent9f91170773d852e65e4fc36e1f8173ce614f62e1 (diff)
net: am79c961a: Omit private ndo_get_stats function
am79c961_getstats() 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> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/arm')
-rw-r--r--drivers/net/arm/am79c961a.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/arm/am79c961a.c b/drivers/net/arm/am79c961a.c
index 62f21106efec..0c9217f48b72 100644
--- a/drivers/net/arm/am79c961a.c
+++ b/drivers/net/arm/am79c961a.c
@@ -340,14 +340,6 @@ am79c961_close(struct net_device *dev)
340 return 0; 340 return 0;
341} 341}
342 342
343/*
344 * Get the current statistics.
345 */
346static struct net_device_stats *am79c961_getstats (struct net_device *dev)
347{
348 return &dev->stats;
349}
350
351static void am79c961_mc_hash(char *addr, unsigned short *hash) 343static void am79c961_mc_hash(char *addr, unsigned short *hash)
352{ 344{
353 if (addr[0] & 0x01) { 345 if (addr[0] & 0x01) {
@@ -665,7 +657,6 @@ static const struct net_device_ops am79c961_netdev_ops = {
665 .ndo_open = am79c961_open, 657 .ndo_open = am79c961_open,
666 .ndo_stop = am79c961_close, 658 .ndo_stop = am79c961_close,
667 .ndo_start_xmit = am79c961_sendpacket, 659 .ndo_start_xmit = am79c961_sendpacket,
668 .ndo_get_stats = am79c961_getstats,
669 .ndo_set_multicast_list = am79c961_setmulticastlist, 660 .ndo_set_multicast_list = am79c961_setmulticastlist,
670 .ndo_tx_timeout = am79c961_timeout, 661 .ndo_tx_timeout = am79c961_timeout,
671 .ndo_validate_addr = eth_validate_addr, 662 .ndo_validate_addr = eth_validate_addr,