From: Li Yang <leoli@freescale.com>
To: jgarzik@pobox.com, netdev@vger.kernel.org
Cc: Li Yang <leoli@freescale.com>
Subject: [PATCH] gianfar: Fix compile regression caused by 09f75cd7
Date: Fri, 12 Oct 2007 21:53:52 +0800 [thread overview]
Message-ID: <1192197233-24958-2-git-send-email-leoli@freescale.com> (raw)
In-Reply-To: <1192197233-24958-1-git-send-email-leoli@freescale.com>
Signed-off-by: Li Yang <leoli@freescale.com>
---
drivers/net/gianfar.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 2b758fa..6d1456a 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -1228,8 +1228,6 @@ static int gfar_change_mtu(struct net_device *dev, int new_mtu)
* starting over will fix the problem. */
static void gfar_timeout(struct net_device *dev)
{
- struct gfar_private *priv = netdev_priv(dev);
-
dev->stats.tx_errors++;
if (dev->flags & IFF_UP) {
@@ -1335,8 +1333,9 @@ struct sk_buff * gfar_new_skb(struct net_device *dev, struct rxbd8 *bdp)
return skb;
}
-static inline void count_errors(unsigned short status, struct gfar_private *priv)
+static inline void count_errors(unsigned short status, struct net_device *dev)
{
+ struct gfar_private *priv = netdev_priv(dev);
struct net_device_stats *stats = &dev->stats;
struct gfar_extra_stats *estats = &priv->extra_stats;
@@ -1530,7 +1529,7 @@ int gfar_clean_rx_ring(struct net_device *dev, int rx_work_limit)
dev->stats.rx_bytes += pkt_len;
} else {
- count_errors(bdp->status, priv);
+ count_errors(bdp->status, dev);
if (skb)
dev_kfree_skb_any(skb);
--
1.5.3.2.104.g41ef
next prev parent reply other threads:[~2007-10-12 13:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-12 13:53 [PATCH] gianfar: Fix compile regression caused by bea3348e Li Yang
2007-10-12 13:53 ` Li Yang [this message]
2007-10-12 13:53 ` [PATCH] gianfar: Cleanup compile warning caused by 0795af57 Li Yang
2007-10-12 18:49 ` Kumar Gala
2007-10-15 18:41 ` Jeff Garzik
2007-10-16 5:39 ` Kumar Gala
2007-10-12 18:49 ` [PATCH] gianfar: Fix compile regression caused by 09f75cd7 Kumar Gala
2007-10-16 5:41 ` Kumar Gala
2007-10-16 5:48 ` Jeff Garzik
2007-10-12 18:48 ` [PATCH] gianfar: Fix compile regression caused by bea3348e Kumar Gala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1192197233-24958-2-git-send-email-leoli@freescale.com \
--to=leoli@freescale.com \
--cc=jgarzik@pobox.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).