diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-04-29 08:04:03 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-04-29 08:04:03 +0400 |
commit | 5a1b5898ee9e0bf68a86609ecb9775457b1857a5 (patch) | |
tree | c51b0c34ba89472a2b5c59d735a7e1affaa0e244 /drivers/parisc | |
parent | d16bfd0c77b35a0a0f0e159b94b9921510bf7934 (diff) | |
download | linux-5a1b5898ee9e0bf68a86609ecb9775457b1857a5.tar.xz |
[NET]: Remove NETIF_F_INTERNAL_STATS, default to internal stats.
Herbert Xu conviced me that a new flag was overkill; every driver
currently overrides get_stats, so we might as well make the internal
one the default. If someone did fail to set get_stats, they would now
get all 0 stats instead of "No statistics available".
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/parisc')
-rw-r--r-- | drivers/parisc/led.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c index 453e6829756c..3df82fe9ce8c 100644 --- a/drivers/parisc/led.c +++ b/drivers/parisc/led.c @@ -373,8 +373,6 @@ static __inline__ int led_get_net_activity(void) if (LOOPBACK(in_dev->ifa_list->ifa_local)) continue; stats = dev->get_stats(dev); - if (!stats) - continue; rx_total += stats->rx_packets; tx_total += stats->tx_packets; } |