diff options
Diffstat (limited to 'drivers/net/3c501.c')
-rw-r--r-- | drivers/net/3c501.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/3c501.c b/drivers/net/3c501.c index 7d15e7c6bcad..3d1318a3e688 100644 --- a/drivers/net/3c501.c +++ b/drivers/net/3c501.c | |||
@@ -297,8 +297,8 @@ static int __init el1_probe1(struct net_device *dev, int ioaddr) | |||
297 | if (el_debug) | 297 | if (el_debug) |
298 | printk(KERN_DEBUG "%s", version); | 298 | printk(KERN_DEBUG "%s", version); |
299 | 299 | ||
300 | memset(dev->priv, 0, sizeof(struct net_local)); | ||
301 | lp = netdev_priv(dev); | 300 | lp = netdev_priv(dev); |
301 | memset(lp, 0, sizeof(struct net_local)); | ||
302 | spin_lock_init(&lp->lock); | 302 | spin_lock_init(&lp->lock); |
303 | 303 | ||
304 | /* | 304 | /* |
@@ -725,7 +725,6 @@ static void el_receive(struct net_device *dev) | |||
725 | insb(DATAPORT, skb_put(skb, pkt_len), pkt_len); | 725 | insb(DATAPORT, skb_put(skb, pkt_len), pkt_len); |
726 | skb->protocol = eth_type_trans(skb, dev); | 726 | skb->protocol = eth_type_trans(skb, dev); |
727 | netif_rx(skb); | 727 | netif_rx(skb); |
728 | dev->last_rx = jiffies; | ||
729 | dev->stats.rx_packets++; | 728 | dev->stats.rx_packets++; |
730 | dev->stats.rx_bytes += pkt_len; | 729 | dev->stats.rx_bytes += pkt_len; |
731 | } | 730 | } |