summaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-08-24 12:22:13 -0700
committerDavid S. Miller <davem@davemloft.net>2010-08-24 12:22:13 -0700
commitb4ddf4b3331f0f2195bd0ab5e8b50080ba93af87 (patch)
tree8d51982f93b475ede347609c2b82ac97ff63add3 /drivers/net/benet
parent1726442e115a9e58f40747d009a5b4f303e0840a (diff)
downloadlinux-b4ddf4b3331f0f2195bd0ab5e8b50080ba93af87.tar.bz2
be2net: get rid of be_get_stats()
drivers can avoid implementing ndo_get_stats method if using netdevice stats structure. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be_main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 74e146f470c6..b89bae029620 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -365,11 +365,6 @@ static void be_rx_eqd_update(struct be_adapter *adapter)
rx_eq->cur_eqd = eqd;
}
-static struct net_device_stats *be_get_stats(struct net_device *dev)
-{
- return &dev->stats;
-}
-
static u32 be_calc_rate(u64 bytes, unsigned long ticks)
{
u64 rate = bytes;
@@ -2399,7 +2394,6 @@ static struct net_device_ops be_netdev_ops = {
.ndo_open = be_open,
.ndo_stop = be_close,
.ndo_start_xmit = be_xmit,
- .ndo_get_stats = be_get_stats,
.ndo_set_rx_mode = be_set_multicast_list,
.ndo_set_mac_address = be_mac_addr_set,
.ndo_change_mtu = be_change_mtu,