]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
bnx2: use net_device_stats nowadays available in net_device
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Fri, 28 Nov 2008 23:52:43 +0000 (15:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Nov 2008 23:52:43 +0000 (15:52 -0800)
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c
drivers/net/bnx2.h

index 8f1cd7cfa09dd4cfa47356af87bdb64d4a0e0f22..182f2410c23d950d271280aa7748fae4f8f79dcd 100644 (file)
@@ -6155,7 +6155,7 @@ bnx2_get_stats(struct net_device *dev)
 {
        struct bnx2 *bp = netdev_priv(dev);
        struct statistics_block *stats_blk = bp->stats_blk;
-       struct net_device_stats *net_stats = &bp->net_stats;
+       struct net_device_stats *net_stats = &dev->stats;
 
        if (bp->stats_blk == NULL) {
                return net_stats;
index 34ca47812af43440777a457a95eeececaa27ca02..0763108fa1c592b4fa126e373711df23772f3a87 100644 (file)
@@ -6872,8 +6872,6 @@ struct bnx2 {
        int                     pm_cap;
        int                     pcix_cap;
 
-       struct net_device_stats net_stats;
-
        struct flash_spec       *flash_info;
        u32                     flash_size;