Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e2ac455a18806b31c2d0da0a51d8740af5010b7a
Commit:     e2ac455a18806b31c2d0da0a51d8740af5010b7a
Parent:     4e04b84ea542a3e3f2fa308b3a7e7ed149f9a3a2
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 13 20:47:35 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Nov 13 20:47:35 2007 -0800

    [NETX]: Fix build failure added by 2.6.24 statistics cleanup.
    
    Reported by rmk from kautobuild output:
    
    drivers/net/netx-eth.c: In function 'netx_eth_hard_start_xmit':
    drivers/net/netx-eth.c:131: error: 'dev' undeclared (first use in this 
function)
    drivers/net/netx-eth.c:131: error: (Each undeclared identifier is reported 
only once
    drivers/net/netx-eth.c:131: error: for each function it appears in.)
    drivers/net/netx-eth.c: In function 'netx_eth_receive':
    drivers/net/netx-eth.c:158: error: 'dev' undeclared (first use in this 
function)
    
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 drivers/net/netx-eth.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/netx-eth.c b/drivers/net/netx-eth.c
index eb0aff7..5267e03 100644
--- a/drivers/net/netx-eth.c
+++ b/drivers/net/netx-eth.c
@@ -128,8 +128,8 @@ netx_eth_hard_start_xmit(struct sk_buff *skb, struct 
net_device *ndev)
                   FIFO_PTR_FRAMELEN(len));
 
        ndev->trans_start = jiffies;
-       dev->stats.tx_packets++;
-       dev->stats.tx_bytes += skb->len;
+       ndev->stats.tx_packets++;
+       ndev->stats.tx_bytes += skb->len;
 
        netif_stop_queue(ndev);
        spin_unlock_irq(&priv->lock);
@@ -155,7 +155,7 @@ static void netx_eth_receive(struct net_device *ndev)
        if (unlikely(skb == NULL)) {
                printk(KERN_NOTICE "%s: Low memory, packet dropped.\n",
                        ndev->name);
-               dev->stats.rx_dropped++;
+               ndev->stats.rx_dropped++;
                return;
        }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to