Commit 065f4b69 authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller

net: emac: Use net_device_stats from struct net_device

Instead of using a private copy of struct net_device_stats in
struct emac_instance, use stats from struct net_device.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a548779b
...@@ -1929,7 +1929,7 @@ static struct net_device_stats *emac_stats(struct net_device *ndev) ...@@ -1929,7 +1929,7 @@ static struct net_device_stats *emac_stats(struct net_device *ndev)
struct emac_instance *dev = netdev_priv(ndev); struct emac_instance *dev = netdev_priv(ndev);
struct emac_stats *st = &dev->stats; struct emac_stats *st = &dev->stats;
struct emac_error_stats *est = &dev->estats; struct emac_error_stats *est = &dev->estats;
struct net_device_stats *nst = &dev->nstats; struct net_device_stats *nst = &ndev->stats;
unsigned long flags; unsigned long flags;
DBG2(dev, "stats" NL); DBG2(dev, "stats" NL);
......
...@@ -265,7 +265,6 @@ struct emac_instance { ...@@ -265,7 +265,6 @@ struct emac_instance {
/* Stats /* Stats
*/ */
struct emac_error_stats estats; struct emac_error_stats estats;
struct net_device_stats nstats;
struct emac_stats stats; struct emac_stats stats;
/* Misc /* Misc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment