Skip to content

Commit

Permalink
bnx2: use net_device_stats nowadays available in net_device
Browse files Browse the repository at this point in the history
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Nov 28, 2008
1 parent 9fd4287 commit d8e8034
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/bnx2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d8e8034

Please sign in to comment.