]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/3c509.c
ALSA: Fix a const to non-const assignment in the Digigram VXpocket sound driver
[linux-2.6-omap-h63xx.git] / drivers / net / 3c509.c
index 87d8795823d7a9e53d2ff8bddc762e29d6a37b69..b9d097c9f6bbb88613e71ce53a42d9388a51fbf2 100644 (file)
@@ -1062,7 +1062,6 @@ el3_rx(struct net_device *dev)
                        struct sk_buff *skb;
 
                        skb = dev_alloc_skb(pkt_len+5);
-                       dev->stats.rx_bytes += pkt_len;
                        if (el3_debug > 4)
                                printk("Receiving packet size %d status %4.4x.\n",
                                           pkt_len, rx_status);
@@ -1077,6 +1076,7 @@ el3_rx(struct net_device *dev)
                                skb->protocol = eth_type_trans(skb,dev);
                                netif_rx(skb);
                                dev->last_rx = jiffies;
+                               dev->stats.rx_bytes += pkt_len;
                                dev->stats.rx_packets++;
                                continue;
                        }