浏览代码

atm: remove a net_device_stats clear

No need to clear device stats in lec_open()

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Eric Dumazet 14 年之前
父节点
当前提交
b92840900f
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      net/atm/lec.c

+ 0 - 1
net/atm/lec.c

@@ -220,7 +220,6 @@ static unsigned char *get_tr_dst(unsigned char *packet, unsigned char *rdesc)
 static int lec_open(struct net_device *dev)
 static int lec_open(struct net_device *dev)
 {
 {
 	netif_start_queue(dev);
 	netif_start_queue(dev);
-	memset(&dev->stats, 0, sizeof(struct net_device_stats));
 
 
 	return 0;
 	return 0;
 }
 }