Patchwork [net-next,2/3] bnx2: use net_device_stats nowadays available in net_device

login
register
mail settings
Submitter Ilpo Järvinen
Date Nov. 28, 2008, 5:53 p.m.
Message ID <12278948182487-git-send-email-ilpo.jarvinen@helsinki.fi>
Download mbox | patch
Permalink /patch/11321/
State Accepted
Delegated to: David Miller
Headers show

Comments

Ilpo Järvinen - Nov. 28, 2008, 5:53 p.m.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
---
 drivers/net/bnx2.c |    2 +-
 drivers/net/bnx2.h |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)
David Miller - Nov. 28, 2008, 11:52 p.m.
From: "Ilpo Järvinen" <ilpo.jarvinen@helsinki.fi>
Date: Fri, 28 Nov 2008 19:53:37 +0200

> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 8f1cd7c..182f241 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -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;
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index 34ca478..0763108 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -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;